<?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>306379</bug_id>
          
          <creation_ts>2026-01-27 15:55:35 -0800</creation_ts>
          <short_desc>[macOS Debug]: ASSERTION FAILED: m_wrapper /Volumes/Data/worker/macOS-Tahoe-Debug-Build-EWS/build/Source/WebCore/bindings/js/JSEventListener.h(168) : JSC::JSObject *WebCore::JSEventListener::ensureJSFunction(ScriptExecutionContext &amp;) const</short_desc>
          <delta_ts>2026-02-18 11:57:07 -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>WebRTC</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="youenn fablet">youennf</assigned_to>
          <cc>ryanhaddad</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2175582</commentid>
    <comment_count>0</comment_count>
    <who name="Marta Darbinyan">darbinyan</who>
    <bug_when>2026-01-27 15:55:35 -0800</bug_when>
    <thetext>The following test is a flaky crash on EWS bots.
webrtc/addTransceiver-then-addTrack.html 

The first crash occurred on https://ews-build.webkit.org/#/builders/161/builds/10071. On post-commit bots the crash is not detected. 


ASSERTION FAILED: m_wrapper
/Volumes/Data/worker/macOS-Tahoe-Debug-Build-EWS/build/Source/WebCore/bindings/js/JSEventListener.h(168) : JSC::JSObject *WebCore::JSEventListener::ensureJSFunction(ScriptExecutionContext &amp;) const
1   0x304a07e50 WebCore::JSEventListener::ensureJSFunction(WebCore::ScriptExecutionContext&amp;) const
2   0x304a07308 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&amp;, WebCore::Event&amp;)
3   0x3059c44f4 WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&amp;, WTF::Vector&lt;WTF::Ref&lt;WebCore::RegisteredEventListener, WTF::RawPtrTraits&lt;WebCore::RegisteredEventListener&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::RegisteredEventListener&gt;&gt;, 1ul, WTF::CrashOnOverflow, 2ul, WTF::FastMalloc&gt;, WebCore::EventTarget::EventInvokePhase)
4   0x3059b7000 WebCore::EventTarget::fireEventListeners(WebCore::Event&amp;, WebCore::EventTarget::EventInvokePhase)
5   0x3059c3ef4 WebCore::EventTarget::dispatchEvent(WebCore::Event&amp;)
6   0x3040700e4 WebCore::RTCPeerConnection::dispatchEvent(WebCore::Event&amp;)
7   0x3040964b0 _ZZN7WebCore17RTCPeerConnection13scheduleEventEON3WTF3RefINS_5EventENS1_12RawPtrTraitsIS3_EENS1_21DefaultRefDerefTraitsIS3_EEEEEN3$_0clIS0_EEDaRT_
8   0x304096474 void WebCore::ActiveDOMObject::queueTaskKeepingObjectAlive&lt;WebCore::RTCPeerConnection, WebCore::RTCPeerConnection::scheduleEvent(WTF::Ref&lt;WebCore::Event, WTF::RawPtrTraits&lt;WebCore::Event&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Event&gt;&gt;&amp;&amp;)::$_0&gt;(WebCore::RTCPeerConnection&amp;, WebCore::TaskSource, WebCore::RTCPeerConnection::scheduleEvent(WTF::Ref&lt;WebCore::Event, WTF::RawPtrTraits&lt;WebCore::Event&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Event&gt;&gt;&amp;&amp;)::$_0&amp;&amp;)::&apos;lambda&apos;()::operator()()
9   0x304096398 WTF::Detail::CallableWrapper&lt;void WebCore::ActiveDOMObject::queueTaskKeepingObjectAlive&lt;WebCore::RTCPeerConnection, WebCore::RTCPeerConnection::scheduleEvent(WTF::Ref&lt;WebCore::Event, WTF::RawPtrTraits&lt;WebCore::Event&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Event&gt;&gt;&amp;&amp;)::$_0&gt;(WebCore::RTCPeerConnection&amp;, WebCore::TaskSource, WebCore::RTCPeerConnection::scheduleEvent(WTF::Ref&lt;WebCore::Event, WTF::RawPtrTraits&lt;WebCore::Event&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Event&gt;&gt;&amp;&amp;)::$_0&amp;&amp;)::&apos;lambda&apos;(), void&gt;::call()
10  0x30003732c WTF::Function&lt;void ()&gt;::operator()() const
11  0x3059ca79c WebCore::EventLoopFunctionDispatchTask::execute()
12  0x3059bc74c WebCore::EventLoop::run(std::__1::optional&lt;WTF::ApproximateTime&gt;)
13  0x305bc7b98 WebCore::WindowEventLoop::didReachTimeToRun()
14  0x305bd1cf8 WebCore::Timer::Timer&lt;WebCore::WindowEventLoop, WebCore::WindowEventLoop&gt;(WebCore::WindowEventLoop&amp;, void (WebCore::WindowEventLoop::*)())::&apos;lambda&apos;()::operator()() const
15  0x305bd1b50 WTF::Detail::CallableWrapper&lt;WebCore::Timer::Timer&lt;WebCore::WindowEventLoop, WebCore::WindowEventLoop&gt;(WebCore::WindowEventLoop&amp;, void (WebCore::WindowEventLoop::*)())::&apos;lambda&apos;(), void&gt;::call()
16  0x30003732c WTF::Function&lt;void ()&gt;::operator()() const
17  0x300188700 WebCore::Timer::fired()
18  0x306f95928 WebCore::ThreadTimers::sharedTimerFiredInternal()
19  0x306fa09e4 WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const
20  0x306fa0990 WTF::Detail::CallableWrapper&lt;WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void&gt;::call()
21  0x30003732c WTF::Function&lt;void ()&gt;::operator()() const
22  0x306f2b2a4 WebCore::MainThreadSharedTimer::fired()
23  0x3070ac020 WebCore::timerFired(__CFRunLoopTimer*, void*)
24  0x192ba718c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
25  0x192ba6e4c __CFRunLoopDoTimer
26  0x192ba69c4 __CFRunLoopDoTimers
27  0x192b9776c __CFRunLoopRun
28  0x192c51e34 _CFRunLoopRunSpecificWithOptions
29  0x194de6964 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
30  0x1943e5a50 -[NSRunLoop(NSRunLoop) run]
31  0x1927e4e14 _xpc_objc_main
com.apple.WebKit.WebContent.Development terminated (pid 22773) for reason: crash

Test result:
https://ews-build.webkit.org/#/builders/161/builds/11253

History:
https://results.webkit.org/?suite=layout-tests&amp;test=webrtc%2FaddTransceiver-then-addTrack.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175583</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-01-27 15:56:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/169044514&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175888</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-28 11:29:36 -0800</bug_when>
    <thetext>Test gardening commit 306365@main (0c0e41008233): &lt;https://commits.webkit.org/306365@main&gt;

Reviewed commits have been landed. Closing PR #57425 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177743</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-03 15:59:01 -0800</bug_when>
    <thetext>Test gardening commit 306739@main (73b086fa2e21): &lt;https://commits.webkit.org/306739@main&gt;

Reviewed commits have been landed. Closing PR #57818 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182697</commentid>
    <comment_count>4</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2026-02-18 08:39:48 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/58930</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182741</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-18 11:57:05 -0800</bug_when>
    <thetext>Committed 307777@main (5a279c49d7d3): &lt;https://commits.webkit.org/307777@main&gt;

Reviewed commits have been landed. Closing PR #58930 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>