Bug 139792 - Web Inspector: CRASH in inspector-protocol/debugger/terminate-dedicated-worker-while-paused.html
Summary: Web Inspector: CRASH in inspector-protocol/debugger/terminate-dedicated-worke...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-12-18 13:58 PST by Joseph Pecoraro
Modified: 2014-12-19 11:42 PST (History)
9 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (2.79 KB, patch)
2014-12-18 14:00 PST, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2014-12-18 13:58:46 PST
* SUMMARY
CRASHes running inspector-protocol/debugger/terminate-dedicated-worker-while-paused.html.

* STEPS TO REPRODUCE
1. shell> run-webkit-tests --debug inspector-protocol/debugger/terminate-dedicated-worker-while-paused.html --repeat-each 2 -v --no-retry -g
  => CRASH

* CRASH 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x000000010c63baeb WebCore::WorkerMessagingProxy::postMessageToPageInspector(WTF::String const&)::$_11::operator()(WebCore::ScriptExecutionContext&) const + 27
1   com.apple.WebCore             	0x000000010c63babc std::__1::__function::__func<WebCore::WorkerMessagingProxy::postMessageToPageInspector(WTF::String const&)::$_11, std::__1::allocator<WebCore::WorkerMessagingProxy::postMessageToPageInspector(WTF::String const&)::$_11>, void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) + 92
2   com.apple.WebCore             	0x000000010ab8680b std::__1::function<void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) const + 59
3   com.apple.WebCore             	0x000000010ab5988d WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&) + 29
4   com.apple.WebCore             	0x000000010ab51ed9 WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task)::$_0::operator()() const + 633
5   com.apple.WebCore             	0x000000010ab51c4c std::__1::__function::__func<WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task)::$_0, std::__1::allocator<WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task)::$_0>, void ()>::operator()() + 60
6   com.apple.JavaScriptCore      	0x0000000106b34d5a std::__1::function<void ()>::operator()() const + 26 (functional:1755)
7   com.apple.JavaScriptCore      	0x0000000106bac942 WTF::callFunctionObject(void*) + 258 (MainThread.cpp:212)
8   com.apple.JavaScriptCore      	0x0000000106bac042 WTF::dispatchFunctionsFromMainThread() + 418 (MainThread.cpp:171)
...

* CRASH 2
Thread 14 Crashed:: WebCore: Worker
0   com.apple.WebCore             	0x000000010891a1cc JSC::HandleBase::slot() const + 12
1   com.apple.WebCore             	0x000000010a884f45 JSC::Handle<WebCore::JSWorkerGlobalScope>::get() const + 21
2   com.apple.WebCore             	0x000000010a884ad5 JSC::HandleConverter<JSC::Handle<WebCore::JSWorkerGlobalScope>, WebCore::JSWorkerGlobalScope>::operator->() + 21
3   com.apple.WebCore             	0x000000010a884426 WebCore::WorkerScriptController::detachDebugger(JSC::Debugger*) + 54
4   com.apple.WebCore             	0x000000010a88654f WebCore::WorkerScriptDebugServer::removeListener(Inspector::ScriptDebugListener*, bool) + 143
5   com.apple.WebCore             	0x000000010a851f45 WebCore::WorkerDebuggerAgent::stopListeningScriptDebugServer(bool) + 69
6   com.apple.JavaScriptCore      	0x000000010496daaa Inspector::InspectorDebuggerAgent::disable(bool) + 74 (InspectorDebuggerAgent.cpp:108)
7   com.apple.WebCore             	0x000000010a7af58f WebCore::WebDebuggerAgent::disable(bool) + 47
...
Comment 1 Radar WebKit Bug Importer 2014-12-18 13:59:01 PST
<rdar://problem/19299495>
Comment 2 Joseph Pecoraro 2014-12-18 14:00:57 PST
Created attachment 243517 [details]
[PATCH] Proposed Fix

After this change, the test still crashes, but consistently crashes like other Worker Inspector tests somewhere in JavaScriptCore.
Comment 3 WebKit Commit Bot 2014-12-19 11:42:34 PST
Comment on attachment 243517 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 243517

Committed r177587: <http://trac.webkit.org/changeset/177587>
Comment 4 WebKit Commit Bot 2014-12-19 11:42:37 PST
All reviewed patches have been landed.  Closing bug.