<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>280792</bug_id>
          
          <creation_ts>2024-10-02 16:29:51 -0700</creation_ts>
          <short_desc>[EWS] inspector/worker/debugger-pause-subworker.html flakily fails with ASSERTION FAILED: Unsafe to ref/deref from different threads</short_desc>
          <delta_ts>2025-12-26 11:19:39 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=286300</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marta Darbinyan">darbinyan</reporter>
          <assigned_to name="Devin Rousso">hi</assigned_to>
          <cc>csaavedra</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>jean-yves.avenard</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2064991</commentid>
    <comment_count>0</comment_count>
    <who name="Marta Darbinyan">darbinyan</who>
    <bug_when>2024-10-02 16:29:51 -0700</bug_when>
    <thetext>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&lt;WebCore::WorkerInspectorProxy&gt;::ref(WebCore::WorkerInspectorProxy&amp;)
4   0x332b166cc WTF::Ref&lt;WebCore::WorkerInspectorProxy, WTF::RawPtrTraits&lt;WebCore::WorkerInspectorProxy&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WorkerInspectorProxy&gt;&gt;::Ref(WebCore::WorkerInspectorProxy&amp;)
5   0x332b118ac WTF::Ref&lt;WebCore::WorkerInspectorProxy, WTF::RawPtrTraits&lt;WebCore::WorkerInspectorProxy&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WorkerInspectorProxy&gt;&gt;::Ref(WebCore::WorkerInspectorProxy&amp;)
6   0x332b17c30 WebCore::WorkerWorkerAgent::connectToAllWorkerInspectorProxies()
7   0x332af6e4c WebCore::InspectorWorkerAgent::enable()
8   0x11a76a1b4 Inspector::WorkerBackendDispatcher::enable(long, WTF::RefPtr&lt;WTF::JSONImpl::Object, WTF::RawPtrTraits&lt;WTF::JSONImpl::Object&gt;, WTF::DefaultRefDerefTraits&lt;WTF::JSONImpl::Object&gt;&gt;&amp;&amp;)
9   0x11a769f48 Inspector::WorkerBackendDispatcher::dispatch(long, WTF::String const&amp;, WTF::Ref&lt;WTF::JSONImpl::Object, WTF::RawPtrTraits&lt;WTF::JSONImpl::Object&gt;, WTF::DefaultRefDerefTraits&lt;WTF::JSONImpl::Object&gt;&gt;&amp;&amp;)
10  0x11a7265c8 Inspector::BackendDispatcher::dispatch(WTF::String const&amp;)
11  0x3329b95c4 WebCore::WorkerInspectorController::dispatchMessageFromFrontend(WTF::String const&amp;)
12  0x3346349a0 WebCore::WorkerInspectorProxy::sendMessageToWorkerInspectorController(WTF::String const&amp;)::$_13::operator()(WebCore::ScriptExecutionContext&amp;) const
13  0x3346348e8 WTF::Detail::CallableWrapper&lt;WebCore::WorkerInspectorProxy::sendMessageToWorkerInspectorController(WTF::String const&amp;)::$_13, void, WebCore::ScriptExecutionContext&amp;&gt;::call(WebCore::ScriptExecutionContext&amp;)
14  0x330529f80 WTF::Function&lt;void (WebCore::ScriptExecutionContext&amp;)&gt;::operator()(WebCore::ScriptExecutionContext&amp;) const
15  0x330ef2b4c WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&amp;)
16  0x33464b1dc WebCore::WorkerDedicatedRunLoop::Task::performTask(WebCore::WorkerOrWorkletGlobalScope*)
17  0x33464a64c WebCore::WorkerDedicatedRunLoop::runInMode(WebCore::WorkerOrWorkletGlobalScope*, WebCore::ModePredicate const&amp;)
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&lt;WebCore::WorkerThread::createThread()::$_18, void&gt;::call()
23  0x118f18eb4 WTF::Function&lt;void ()&gt;::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 &apos;[].x.x&apos;)
+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;
- -&gt;   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: &quot;breakpoint&quot;
+    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&amp;test=inspector%2Fworker%2Fdebugger-pause-subworker.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064994</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-02 16:37:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/137162440&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064996</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-02 17:19:21 -0700</bug_when>
    <thetext>Test gardening commit 284591@main (3ad53cf89c2b): &lt;https://commits.webkit.org/284591@main&gt;

Reviewed commits have been landed. Closing PR #34602 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2075430</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-11-15 12:28:06 -0800</bug_when>
    <thetext>Test gardening commit 286649@main (fea3f59ff223): &lt;https://commits.webkit.org/286649@main&gt;

Reviewed commits have been landed. Closing PR #36713 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082469</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-12-17 14:09:26 -0800</bug_when>
    <thetext>*** Bug 284721 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2168270</commentid>
    <comment_count>5</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2025-12-26 11:19:39 -0800</bug_when>
    <thetext>That crash was fixed in https://github.com/WebKit/WebKit/commit/ebcf8e77474c9074d6802d0966205e4f62c39c68</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>