RESOLVED FIXED 135345
JSContext Inspector: crash when using step-into
https://bugs.webkit.org/show_bug.cgi?id=135345
Summary JSContext Inspector: crash when using step-into
Joseph Pecoraro
Reported 2014-07-28 12:04:28 PDT
* STEPS TO REPRODUCE 1. JSContext with "function a() { debugger; b() } function b() { console.log("b"); }" 2. Inspect JSContext 3. run a() 4. Step Into => CRASH * DETAILS Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 JavaScriptCore 0x003db692 Inspector::InspectorDebuggerAgent::stepInto(WTF::String*) + 90 1 JavaScriptCore 0x003db6b8 non-virtual thunk to Inspector::InspectorDebuggerAgent::stepInto(WTF::String*) + 24 2 JavaScriptCore 0x003e60ce Inspector::InspectorDebuggerBackendDispatcher::stepInto(long, Inspector::InspectorObject const&) + 70 3 JavaScriptCore 0x003e5136 Inspector::InspectorDebuggerBackendDispatcher::dispatch(long, WTF::String const&, WTF::PassRefPtr<Inspector::InspectorObject>) + 634 4 JavaScriptCore 0x003cdf6c Inspector::InspectorBackendDispatcher::dispatch(WTF::String const&) + 1060 5 JavaScriptCore 0x0048d3d4 Inspector::JSGlobalObjectInspectorController::dispatchMessageFromFrontend(WTF::String const&) + 40 Looks like we forgot to null check m_listener in this one place. <rdar://problem/17364180>
Attachments
[PATCH] Proposed Fix (1.34 KB, patch)
2014-07-28 12:20 PDT, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2014-07-28 12:20:42 PDT
Created attachment 235605 [details] [PATCH] Proposed Fix
WebKit Commit Bot
Comment 2 2014-07-28 13:38:52 PDT
Comment on attachment 235605 [details] [PATCH] Proposed Fix Clearing flags on attachment: 235605 Committed r171688: <http://trac.webkit.org/changeset/171688>
WebKit Commit Bot
Comment 3 2014-07-28 13:38:55 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.