了解JavascriptCore / WebKit崩溃报告

时间:2019-06-04 20:55:32

标签: ios webkit crash-reports javascriptcore

我有一个iOS应用,里面有一个WebView。在执行一些调试并使用Safari WebInspector控制台在WKWebView中调用一些JS时,我看到我收到了webViewWebContentProcessDidTerminate委托方法,并且正在生成以下崩溃报告。

从WKWebView内的HTML调用相同的代码时,它可以完美地工作,而从Safari WebInspector控制台调用时,往往会严重崩溃webview。

我可以请您帮助我理解它的意思吗?我尝试在bugzilla中搜索WebKit项目,但是没有运气。

任何帮助将不胜感激。

Incident Identifier: 7B8BF9CF-D14B-4810-852D-150E08F13567
CrashReporter Key:   422ed5387335f552aae01f8189a4d6f8d142da11
Hardware Model:      iPhone11,8
Process:             com.apple.WebKit.WebContent [7130]
Path:                /System/Library/Frameworks/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent
Identifier:          com.apple.WebKit.WebContent
Version:             8607.2.6.0.1 (8607)
Code Type:           ARM-64 (Native)
Role:                Unspecified
Parent Process:      launchd [1]


Date/Time:           2019-06-04 19:20:40.0643 +0200
Launch Time:         2019-06-04 19:19:51.9906 +0200
OS Version:          iPhone OS 12.3.1 (16F203)
Baseband Version:    1.05.04
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000000000002a
VM Region Info: 0x2a is not in any region.  Bytes before following region: 4304076758
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                 00000001008b0000-00000001008b4000 [   16K] r-x/r-x SM=COW  ...it.WebContent

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [7130]
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   JavaScriptCore                  0x000000021eb60c38 llint_entry + 51896
1   JavaScriptCore                  0x000000021eb69838 llint_entry + 87736
2   JavaScriptCore                  0x000000021eb69838 llint_entry + 87736
3   JavaScriptCore                  0x000000021eb69838 llint_entry + 87736
4   JavaScriptCore                  0x000000021eb53ef4 vmEntryToJavaScript + 276
5   JavaScriptCore                  0x000000021f0a45b0 JSC::Interpreter::executeProgram+ 7910832 (JSC::SourceCode const&, JSC::ExecState*, JSC::JSObject*) + 11056
6   JavaScriptCore                  0x000000021f2cd67c JSC::evaluate+ 10176124 (JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, WTF::NakedPtr<JSC::Exception>&) + 328
7   JavaScriptCore                  0x000000021f2cd8b8 JSC::evaluateWithScopeExtension+ 10176696 (JSC::ExecState*, JSC::SourceCode const&, JSC::JSObject*, WTF::NakedPtr<JSC::Exception>&) + 124
8   JavaScriptCore                  0x000000021f078dc4 Inspector::JSInjectedScriptHost::evaluateWithScopeExtension+ 7732676 (JSC::ExecState*) + 440
9   JavaScriptCore                  0x000000021f080160 Inspector::jsInjectedScriptHostPrototypeFunctionEvaluateWithScopeExtension+ 7762272 (JSC::ExecState*) + 100
10  ???                             0x0000000d11124248 0 + 56120984136
11  JavaScriptCore                  0x000000021eb69838 llint_entry + 87736
12  JavaScriptCore                  0x000000021eb69838 llint_entry + 87736
13  JavaScriptCore                  0x000000021eb53ef4 vmEntryToJavaScript + 276
14  JavaScriptCore                  0x000000021f0a64d8 JSC::Interpreter::executeCall+ 7918808 (JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 420
15  JavaScriptCore                  0x000000021f2a6758 JSC::call+ 10016600 (JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 76
16  WebCore                         0x0000000220c6c76c WebCore::functionCallHandlerFromAnyThread+ 11859820 (JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 128
17  JavaScriptCore                  0x000000021ec937bc Deprecated::ScriptFunctionCall::call+ 3647420 (bool&) + 508
18  JavaScriptCore                  0x000000021f01cf7c Inspector::InjectedScriptBase::makeCall+ 7356284 (Deprecated::ScriptFunctionCall&) + 104
19  JavaScriptCore                  0x000000021f01c1d0 Inspector::InjectedScript::evaluate+ 7352784 (WTF::String&, WTF::String const&, WTF::String const&, bool, bool, bool, bool, WTF::RefPtr<Inspector::Protocol::Runtime::RemoteObject, WTF::DumbPtrTraits<Inspector::Protocol::Runtime::RemoteObject> >&, WTF::Optional<bool>&, WTF::Optional<int>&) + 264
20  JavaScriptCore                  0x000000021f095a04 Inspector::InspectorRuntimeAgent::evaluate+ 7850500 (WTF::String&, WTF::String const&, WTF::String const*, bool const*, bool const*, int const*, bool const*, bool const*, bool const*, WTF::RefPtr<Inspector::Protocol::Runtime::RemoteObject, WTF::DumbPtrTraits<Inspector::Protocol::Runtime::RemoteObject> >&, WTF::Optional<bool>&, WTF::Optional<int>&) + 360
21  JavaScriptCore                  0x000000021f052960 Inspector::RuntimeBackendDispatcher::evaluate+ 7575904 (long, WTF::RefPtr<WTF::JSONImpl::Object, WTF::DumbPtrTraits<WTF::JSONImpl::Object> >&&) + 2116
22  JavaScriptCore                  0x000000021f051b98 Inspector::RuntimeBackendDispatcher::dispatch+ 7572376 (long, WTF::String const&, WTF::Ref<WTF::JSONImpl::Object, WTF::DumbPtrTraits<WTF::JSONImpl::Object> >&&) + 956
23  JavaScriptCore                  0x000000021f0240a8 Inspector::BackendDispatcher::dispatch+ 7385256 (WTF::String const&) + 2096
24  WebKit                          0x0000000227310d68 WebKit::WebPageInspectorTargetController::sendMessageToTargetBackend+ 3800424 (WTF::String const&, WTF::String const&) + 60
25  WebKit                          0x0000000227366858 void IPC::handleMessage<Messages::WebPage::SendMessageToTargetBackend, WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&, WTF::String const&)>(IPC::Decoder&, WebKit::WebPage*, void (WebKit::WebPage::*)+ 4151384 (WTF::String const&, WTF::String const&)) + 108
26  WebKit                          0x0000000226faccec IPC::MessageReceiverMap::dispatchMessage+ 244972 (IPC::Connection&, IPC::Decoder&) + 128
27  WebKit                          0x0000000227294b34 WebKit::WebProcess::didReceiveMessage+ 3291956 (IPC::Connection&, IPC::Decoder&) + 40
28  WebKit                          0x0000000226f9fe64 IPC::Connection::dispatchMessage+ 192100 (IPC::Decoder&) + 104
29  WebKit                          0x0000000226f9cc00 IPC::Connection::dispatchMessage+ 179200 (std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 152
30  WebKit                          0x0000000226fa01f8 IPC::Connection::dispatchOneIncomingMessage+ 193016 () + 196
31  JavaScriptCore                  0x000000021e9561c8 WTF::RunLoop::performWork+ 250312 () + 272
32  JavaScriptCore                  0x000000021e956498 WTF::RunLoop::performWork+ 251032 (void*) + 40
33  CoreFoundation                  0x0000000217682444 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
34  CoreFoundation                  0x00000002176823c0 __CFRunLoopDoSource0 + 92
35  CoreFoundation                  0x0000000217681c7c __CFRunLoopDoSources0 + 180
36  CoreFoundation                  0x000000021767c950 __CFRunLoopRun + 988
37  CoreFoundation                  0x000000021767c254 CFRunLoopRunSpecific + 452
38  Foundation                      0x000000021805c04c -[NSRunLoop+ 32844 (NSRunLoop) runMode:beforeDate:] + 304
39  Foundation                      0x00000002180989e0 -[NSRunLoop+ 281056 (NSRunLoop) run] + 92
40  libxpc.dylib                    0x000000021733e798 _xpc_objc_main + 520
41  libxpc.dylib                    0x00000002173411d0 xpc_main + 180
42  com.apple.WebKit.WebContent     0x00000001008b371c 0x1008b0000 + 14108
43  com.apple.WebKit.WebContent     0x00000001008b38e4 0x1008b0000 + 14564
44  libdyld.dylib                   0x0000000217138fd8 start + 4

0 个答案:

没有答案
相关问题