NEW 280792
[EWS] inspector/worker/debugger-pause-subworker.html flakily fails with ASSERTION FAILED: Unsafe to ref/deref from different threads
https://bugs.webkit.org/show_bug.cgi?id=280792
Summary [EWS] inspector/worker/debugger-pause-subworker.html flakily fails with ASSER...
Marta Darbinyan
Reported 2024-10-02 16:29:51 PDT
The following test is pre-existing failure in Sonoma EWS and also flaky timeout failure crash on ToT. inspector/worker/debugger-pause-subworker.html Crash log: ASSERTION FAILED: Unsafe to ref/deref from different threads m_isOwnedByMainThread == isMainThread() /Volumes/Data/worker/macOS-Sonoma-Debug-Build-EWS/build/WebKitBuild/Debug/usr/local/include/wtf/RefCounted.h(126) : void WTF::RefCountedBase::applyRefDerefThreadingCheck() const 1 0x32d9fac60 WTF::RefCountedBase::applyRefDerefThreadingCheck() const 2 0x32db15328 WTF::RefCountedBase::ref() const 3 0x332b166fc WTF::DefaultRefDerefTraits<WebCore::WorkerInspectorProxy>::ref(WebCore::WorkerInspectorProxy&) 4 0x332b166cc WTF::Ref<WebCore::WorkerInspectorProxy, WTF::RawPtrTraits<WebCore::WorkerInspectorProxy>, WTF::DefaultRefDerefTraits<WebCore::WorkerInspectorProxy>>::Ref(WebCore::WorkerInspectorProxy&) 5 0x332b118ac WTF::Ref<WebCore::WorkerInspectorProxy, WTF::RawPtrTraits<WebCore::WorkerInspectorProxy>, WTF::DefaultRefDerefTraits<WebCore::WorkerInspectorProxy>>::Ref(WebCore::WorkerInspectorProxy&) 6 0x332b17c30 WebCore::WorkerWorkerAgent::connectToAllWorkerInspectorProxies() 7 0x332af6e4c WebCore::InspectorWorkerAgent::enable() 8 0x11a76a1b4 Inspector::WorkerBackendDispatcher::enable(long, WTF::RefPtr<WTF::JSONImpl::Object, WTF::RawPtrTraits<WTF::JSONImpl::Object>, WTF::DefaultRefDerefTraits<WTF::JSONImpl::Object>>&&) 9 0x11a769f48 Inspector::WorkerBackendDispatcher::dispatch(long, WTF::String const&, WTF::Ref<WTF::JSONImpl::Object, WTF::RawPtrTraits<WTF::JSONImpl::Object>, WTF::DefaultRefDerefTraits<WTF::JSONImpl::Object>>&&) 10 0x11a7265c8 Inspector::BackendDispatcher::dispatch(WTF::String const&) 11 0x3329b95c4 WebCore::WorkerInspectorController::dispatchMessageFromFrontend(WTF::String const&) 12 0x3346349a0 WebCore::WorkerInspectorProxy::sendMessageToWorkerInspectorController(WTF::String const&)::$_13::operator()(WebCore::ScriptExecutionContext&) const 13 0x3346348e8 WTF::Detail::CallableWrapper<WebCore::WorkerInspectorProxy::sendMessageToWorkerInspectorController(WTF::String const&)::$_13, void, WebCore::ScriptExecutionContext&>::call(WebCore::ScriptExecutionContext&) 14 0x330529f80 WTF::Function<void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) const 15 0x330ef2b4c WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&) 16 0x33464b1dc WebCore::WorkerDedicatedRunLoop::Task::performTask(WebCore::WorkerOrWorkletGlobalScope*) 17 0x33464a64c WebCore::WorkerDedicatedRunLoop::runInMode(WebCore::WorkerOrWorkletGlobalScope*, WebCore::ModePredicate const&) 18 0x334648bd8 WebCore::WorkerDedicatedRunLoop::run(WebCore::WorkerOrWorkletGlobalScope*) 19 0x334648b0c WebCore::WorkerOrWorkletThread::runEventLoop() 20 0x334648f20 WebCore::WorkerOrWorkletThread::workerOrWorkletThread() 21 0x33466de30 WebCore::WorkerThread::createThread()::$_18::operator()() const 22 0x33466dddc WTF::Detail::CallableWrapper<WebCore::WorkerThread::createThread()::$_18, void>::call() 23 0x118f18eb4 WTF::Function<void ()>::operator()() const 24 0x11904c828 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) 25 0x119058eb0 WTF::wtfThreadEntryPoint(void*) 26 0x1942faf94 _pthread_start 27 0x1942f5d34 thread_start com.apple.WebKit.WebContent.Development terminated (pid 9833) for reason: crash LEAK: 2 WebPageProxy Diff Link: https://build.webkit.org/results/Apple-Ventura-Debug-AppleSilicon-WK1-Tests/284442@main%20(7690)/inspector/worker/debugger-pause-subworker-crash-log.txt Timeout errors: @@ -1,4 +1,4 @@ -CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating '[].x.x') +FAIL: Timed out waiting for notifyDone to be called Ensure we can pause in Subworkers. Diff Link: https://build.webkit.org/results/Apple-Sequoia-Debug-WK1-Tests/284496@main%20(100)/inspector/worker/debugger-pause-subworker-diff.txt Failure logs: -- Running test case: Subworker.Debugger.Pause.Breakpoint Triggering pause... -PASS: Should be paused in a Subworker CallFrame. -PASS: Pause reason should be a breakpoint. -PAUSE AT triggerBreakpoint:9:5 - 5 - 6 function triggerBreakpoint() { - 7 let alpha = 1; - -> 8 |let beta = 2; // BREAKPOINT - 9 let gamma = 3; - 10 } - 11 + +FAIL: Should be paused in a Subworker CallFrame. + Expected: WorkerTarget instance #2 + Actual: DirectBackendTarget instance #1 +FAIL: Pause reason should be a breakpoint. + Expected: "breakpoint" + Actual: null +PAUSE AT Global Code:1:1 +--- Source Unavailable --- Diff link: https://build.webkit.org/results/Apple-Sequoia-Release-AppleSilicon-WK1-Tests/284513@main%20(166)/inspector/worker/debugger-pause-subworker-diff.txt History: https://results.webkit.org/?suite=layout-tests&test=inspector%2Fworker%2Fdebugger-pause-subworker.html
Attachments
Radar WebKit Bug Importer
Comment 1 2024-10-02 16:37:28 PDT
EWS
Comment 2 2024-10-02 17:19:21 PDT
Test gardening commit 284591@main (3ad53cf89c2b): <https://commits.webkit.org/284591@main> Reviewed commits have been landed. Closing PR #34602 and removing active labels.
EWS
Comment 3 2024-11-15 12:28:06 PST
Test gardening commit 286649@main (fea3f59ff223): <https://commits.webkit.org/286649@main> Reviewed commits have been landed. Closing PR #36713 and removing active labels.
Alexey Proskuryakov
Comment 4 2024-12-17 14:09:26 PST
*** Bug 284721 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.