<?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>313410</bug_id>
          
          <creation_ts>2026-04-27 03:19:06 -0700</creation_ts>
          <short_desc>[GStreamer] Several tests crash with assertions enabled due to deref&apos;ing WebCore::RiceBackendClient from the wrong thread</short_desc>
          <delta_ts>2026-05-07 00:55:16 -0700</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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=308119</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Claudio Saavedra">csaavedra</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aboya</cc>
    
    <cc>calvaris</cc>
    
    <cc>eocanha</cc>
    
    <cc>philn</cc>
    
    <cc>vwatermeier</cc>
    
    <cc>youennf</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2204842</commentid>
    <comment_count>0</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2026-04-27 03:19:06 -0700</bug_when>
    <thetext>For example https://ews-build.s3-us-west-2.amazonaws.com/GTK-WK2-Tests-EWS/ad774b05-131320/results.html

Test: imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-plan-b-is-not-supported.html	

Thread 1 (Thread 0x7f43a25d56c0 (LWP 508279)):
#0  WTFCrash () at ../../../Source/WTF/wtf/Assertions.cpp:380
#1  0x00007f49e01f6dbb in WTFCrashWithSecurityImplication () at ../../../Source/WTF/wtf/Assertions.cpp:409
#2  0x00007f49f10dcc87 in WTF::assertIsCurrent (threadLikeAssertion=...) at WTF/Headers/wtf/ThreadAssertions.h:163
#3  0x00007f49f10e1a63 in WTF::RefCountDebuggerImpl&lt;(WTF::RefCountIsThreadSafe)0&gt;::applyRefDerefThreadingCheck (this=0x7f43b8329a84, refCount=2) at WTF/Headers/wtf/RefCountDebugger.h:130
#4  0x00007f49f10e0e3a in WTF::RefCountDebuggerImpl&lt;(WTF::RefCountIsThreadSafe)0&gt;::willDeref (this=0x7f43b8329a84, refCount=2) at WTF/Headers/wtf/RefCountDebugger.h:156
#5  0x00007f49f10df032 in WTF::RefCountedBase::derefBase (this=0x7f43b8329a80) at WTF/Headers/wtf/RefCounted.h:59
#6  0x00007f49f432af14 in WTF::RefCounted&lt;WebCore::RiceBackendClient&gt;::deref (this=0x7f43b8329a80) at WTF/Headers/wtf/RefCounted.h:82
#7  0x00007f49f4322f95 in WTF::DefaultRefDerefTraits&lt;WebCore::RiceBackendClient&gt;::derefIfNotNull (ptr=0x7f43b8329a80) at WTF/Headers/wtf/Ref.h:67
#8  0x00007f49f431e05e in WTF::RefPtr&lt;WebCore::RiceBackendClient, WTF::RawPtrTraits&lt;WebCore::RiceBackendClient&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::RiceBackendClient&gt; &gt;::~RefPtr (this=0x55e85b48e9a0, __in_chrg=&lt;optimized out&gt;) at WTF/Headers/wtf/RefPtr.h:116
#9  0x00007f49f7baab44 in _WebKitGstIceAgentPrivate::~_WebKitGstIceAgentPrivate (this=0x55e85b48e9a0, __in_chrg=&lt;optimized out&gt;) at ../../../Source/WebCore/Modules/mediastream/gstreamer/GStreamerIceAgent.cpp:80
#10 0x00007f49f7baab8d in webkit_gst_webrtc_ice_backend_finalize (object=0x55e85b48ea80) at ../../../Source/WebCore/Modules/mediastream/gstreamer/GStreamerIceAgent.cpp:122
#11 0x00007f49e0c73720 in g_object_unref (_object=0x55e85b48ea80) at ../../../../../jhbuild/checkout/glib/gobject/gobject.c:4486
#12 0x00007f49d9d6ac70 in gst_object_unref (object=&lt;optimized out&gt;) at ../../../../../jhbuild/checkout/gstreamer/subprojects/gstreamer/gst/gstobject.c:269
#13 0x00007f496440fd77 in gst_webrtc_bin_dispose (object=0x55e85f995a60) at ../../../../../jhbuild/checkout/gstreamer/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c:9014
#14 0x00007f49e0c733fb in g_object_unref (_object=_object@entry=0x55e85f995a60) at ../../../../../jhbuild/checkout/glib/gobject/gobject.c:4415
#15 0x00007f49d9d6ac70 in gst_object_unref (object=object@entry=0x55e85f995a60) at ../../../../../jhbuild/checkout/gstreamer/subprojects/gstreamer/gst/gstobject.c:269
#16 0x00007f49d9d7489f in gst_bin_remove_func (bin=0x55e8601f5dd0, element=&lt;optimized out&gt;) at ../../../../../jhbuild/checkout/gstreamer/subprojects/gstreamer/gst/gstbin.c:1817
#17 0x00007f49d9d739af in gst_bin_remove (bin=bin@entry=0x55e8601f5dd0, element=0x55e85f995a60) at ../../../../../jhbuild/checkout/gstreamer/subprojects/gstreamer/gst/gstbin.c:1868
#18 0x00007f49d9d73cb3 in gst_bin_dispose (object=0x55e8601f5dd0) at ../../../../../jhbuild/checkout/gstreamer/subprojects/gstreamer/gst/gstbin.c:527
#19 0x00007f49e0c733fb in g_object_unref (_object=0x55e8601f5dd0) at ../../../../../jhbuild/checkout/glib/gobject/gobject.c:4415
#20 0x00007f49d9d6ac70 in gst_object_unref (object=&lt;optimized out&gt;) at ../../../../../jhbuild/checkout/gstreamer/subprojects/gstreamer/gst/gstobject.c:269
#21 0x00007f49d9e0667d in gst_call_async_func (data=0x55e86010e730, user_data=&lt;optimized out&gt;) at ../../../../../jhbuild/checkout/gstreamer/subprojects/gstreamer/gst/gstutils.c:5065
#22 0x00007f49e0b941e2 in g_thread_pool_thread_proxy (data=&lt;optimized out&gt;) at ../../../../../jhbuild/checkout/glib/glib/gthreadpool.c:336
#23 0x00007f49e0b93bd1 in g_thread_proxy (data=0x7f496c00df20) at ../../../../../jhbuild/checkout/glib/glib/gthread.c:892
#24 0x00007f49e1e8aaa4 in start_thread (arg=&lt;optimized out&gt;) at ./nptl/pthread_create.c:447
#25 0x00007f49e1f17c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78



Also in EWS: https://ews-build.s3-us-west-2.amazonaws.com/GTK-WK2-Tests-EWS/ad774b05-131320/results.html webrtc/datachannel/multiple-connections.html and in Debug too https://build.webkit.org/results/GTK-Linux-64-bit-Debug-Tests/311836@main%20(18765)/results.html

Seems not very frequent but clearly something to fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2204846</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-04-27 03:43:48 -0700</bug_when>
    <thetext>Looks like a variant of bug 308119.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208499</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-05-07 00:55:16 -0700</bug_when>
    <thetext>*** Bug 314219 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>