WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 280792
284721
ASSERTION FAILED: Unsafe to ref/deref from different threads
https://bugs.webkit.org/show_bug.cgi?id=284721
Summary
ASSERTION FAILED: Unsafe to ref/deref from different threads
Jean-Yves Avenard [:jya]
Reported
2024-12-15 14:33:30 PST
https://ews-build.s3-us-west-2.amazonaws.com/macOS-Sequoia-Debug-WK2-Tests-EWS/ec82f18e-5919-rerun/results.html
inspector/worker/runtime-basic.html ``` stderr: ASSERTION FAILED: Unsafe to ref/deref from different threads m_isOwnedByMainThread == isMainThread() /Volumes/Data/worker/macOS-Sequoia-Debug-Build-EWS/build/WebKitBuild/Debug/usr/local/include/wtf/RefCounted.h(124) : void WTF::RefCountedBase::applyRefDerefThreadingCheck() const 1 0x300142fcc WTF::RefCountedBase::applyRefDerefThreadingCheck() const 2 0x300145318 WTF::RefCountedBase::ref() const 3 0x30547d5b0 WTF::DefaultRefDerefTraits<WebCore::WorkerInspectorProxy>::ref(WebCore::WorkerInspectorProxy&) 4 0x30547d580 WTF::Ref<WebCore::WorkerInspectorProxy, WTF::RawPtrTraits<WebCore::WorkerInspectorProxy>, WTF::DefaultRefDerefTraits<WebCore::WorkerInspectorProxy>>::Ref(WebCore::WorkerInspectorProxy&) 5 0x305478688 WTF::Ref<WebCore::WorkerInspectorProxy, WTF::RawPtrTraits<WebCore::WorkerInspectorProxy>, WTF::DefaultRefDerefTraits<WebCore::WorkerInspectorProxy>>::Ref(WebCore::WorkerInspectorProxy&) 6 0x30547ea64 WebCore::WorkerWorkerAgent::connectToAllWorkerInspectorProxies() 7 0x30545d84c WebCore::InspectorWorkerAgent::enable() 8 0x13175ef9c Inspector::WorkerBackendDispatcher::enable(long, WTF::RefPtr<WTF::JSONImpl::Object, WTF::RawPtrTraits<WTF::JSONImpl::Object>, WTF::DefaultRefDerefTraits<WTF::JSONImpl::Object>>&&) 9 0x13175ed30 Inspector::WorkerBackendDispatcher::dispatch(long, WTF::String const&, WTF::Ref<WTF::JSONImpl::Object, WTF::RawPtrTraits<WTF::JSONImpl::Object>, WTF::DefaultRefDerefTraits<WTF::JSONImpl::Object>>&&) 10 0x13171b3f4 Inspector::BackendDispatcher::dispatch(WTF::String const&) 11 0x30531dfa4 WebCore::WorkerInspectorController::dispatchMessageFromFrontend(WTF::String const&) 12 0x307171038 WebCore::WorkerInspectorProxy::sendMessageToWorkerInspectorController(WTF::String const&)::$_0::operator()(WebCore::ScriptExecutionContext&) const 13 0x307170f80 WTF::Detail::CallableWrapper<WebCore::WorkerInspectorProxy::sendMessageToWorkerInspectorController(WTF::String const&)::$_0, void, WebCore::ScriptExecutionContext&>::call(WebCore::ScriptExecutionContext&) 14 0x302d04ae8 WTF::Function<void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) const 15 0x3037310d4 WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&) 16 0x307187744 WebCore::WorkerDedicatedRunLoop::Task::performTask(WebCore::WorkerOrWorkletGlobalScope*) 17 0x307186bb8 WebCore::WorkerDedicatedRunLoop::runInMode(WebCore::WorkerOrWorkletGlobalScope*, WebCore::ModePredicate const&) 18 0x307185170 WebCore::WorkerDedicatedRunLoop::run(WebCore::WorkerOrWorkletGlobalScope*) 19 0x3071850a4 WebCore::WorkerOrWorkletThread::runEventLoop() 20 0x3071854b8 WebCore::WorkerOrWorkletThread::workerOrWorkletThread() 21 0x3071aab0c WebCore::WorkerThread::createThread()::$_1::operator()() const 22 0x3071aaab8 WTF::Detail::CallableWrapper<WebCore::WorkerThread::createThread()::$_1, void>::call() 23 0x12feaf018 WTF::Function<void ()>::operator()() const 24 0x12fffd6f0 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) 25 0x130009f34 WTF::wtfThreadEntryPoint(void*) 26 0x1911072e4 _pthread_start 27 0x1911020fc thread_start com.apple.WebKit.WebContent.Development terminated (pid 20150) for reason: crash LEAK: 2 WebPageProxy ```
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2024-12-17 14:09:26 PST
*** This bug has been marked as a duplicate of
bug 280792
***
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