WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
183644
MessagePort should remove its listeners when being closed
https://bugs.webkit.org/show_bug.cgi?id=183644
Summary
MessagePort should remove its listeners when being closed
youenn fablet
Reported
2018-03-14 14:10:58 PDT
Otherwise we end up with something like: 1 0x628c6e97d WTFCrash 2 0x6199a5ca1 WebCore::JSVMClientData::~JSVMClientData() 3 0x6199a5eb5 WebCore::JSVMClientData::~JSVMClientData() 4 0x6199a5ed9 WebCore::JSVMClientData::~JSVMClientData() 5 0x6289e13ca JSC::VM::~VM() 6 0x6289e4065 JSC::VM::~VM() 7 0x627717e77 WTF::ThreadSafeRefCounted<JSC::VM>::deref() const 8 0x628458cc1 void WTF::derefIfNotNull<JSC::VM>(JSC::VM*) 9 0x6284499e7 WTF::RefPtr<JSC::VM, WTF::DumbPtrTraits<JSC::VM> >::operator=(std::nullptr_t) 10 0x628867dfa JSC::JSLockHolder::~JSLockHolder() 11 0x628867e75 JSC::JSLockHolder::~JSLockHolder() 12 0x6199a739a WebCore::WorkerScriptController::~WorkerScriptController() 13 0x6199a75a5 WebCore::WorkerScriptController::~WorkerScriptController() 14 0x61b3889f2 WebCore::WorkerGlobalScope::clearScript() 15 0x61b388936 WebCore::WorkerThread::stop(WTF::Function<void ()>&&)::$_16::operator()(WebCore::ScriptExecutionContext&) const::'lambda'(WebCore::ScriptExecutionContext&)::operator()(WebCore::ScriptExecutionContext&) const 16 0x61b3888e4 WTF::Function<void (WebCore::ScriptExecutionContext&)>::CallableWrapper<WebCore::WorkerThread::stop(WTF::Function<void ()>&&)::$_16::operator()(WebCore::ScriptExecutionContext&) const::'lambda'(WebCore::ScriptExecutionContext&)>::call(WebCore::ScriptExecutionContext&) 17 0x6197e062e WTF::Function<void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) const 18 0x6197cdead WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&) 19 0x61b3777a0 WebCore::WorkerRunLoop::Task::performTask(WebCore::WorkerGlobalScope*) 20 0x61b376b4e WebCore::WorkerRunLoop::runCleanupTasks(WebCore::WorkerGlobalScope*) 21 0x61b3761e0 WebCore::WorkerRunLoop::run(WebCore::WorkerGlobalScope*) 22 0x61b37ad23 WebCore::WorkerThread::runEventLoop() 23 0x61b35e948 WebCore::DedicatedWorkerThread::runEventLoop() 24 0x61b37a870 WebCore::WorkerThread::workerThread() 25 0x61b386778 WebCore::WorkerThread::start(WTF::Function<void (WTF::String const&)>&&)::$_12::operator()() const 26 0x61b386739 WTF::Function<void ()>::CallableWrapper<WebCore::WorkerThread::start(WTF::Function<void (WTF::String const&)>&&)::$_12>::call() 27 0x628c8a87b WTF::Function<void ()>::operator()() const 28 0x628cfab9f WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) 29 0x628d002f5 WTF::wtfThreadEntryPoint(void*) 30 0x7fff7fabe6c1 _pthread_body 31 0x7fff7fabe56d _pthread_body
Attachments
Patch
(4.51 KB, patch)
2018-03-14 14:12 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(4.49 KB, patch)
2018-03-14 14:28 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2018-03-14 14:12:44 PDT
Created
attachment 335797
[details]
Patch
Chris Dumez
Comment 2
2018-03-14 14:24:22 PDT
Comment on
attachment 335797
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=335797&action=review
r=me if the bots are happy.
> LayoutTests/http/tests/workers/worker-messageport.html:1 > +<body>
Missing <html> since you have a </html>
> LayoutTests/http/tests/workers/worker-messageport.html:14 > + // do GC in worker
This comment seems weird.
youenn fablet
Comment 3
2018-03-14 14:28:38 PDT
Created
attachment 335802
[details]
Patch for landing
WebKit Commit Bot
Comment 4
2018-03-14 15:20:39 PDT
Comment on
attachment 335802
[details]
Patch for landing Clearing flags on attachment: 335802 Committed
r229614
: <
https://trac.webkit.org/changeset/229614
>
WebKit Commit Bot
Comment 5
2018-03-14 15:20:40 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2018-03-14 15:21:48 PDT
<
rdar://problem/38476200
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug