<?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>245046</bug_id>
          
          <creation_ts>2022-09-11 09:08:01 -0700</creation_ts>
          <short_desc>[GStreamer][WebRTC][Debug] Several tests asserting in WPE bots</short_desc>
          <delta_ts>2022-09-13 04:02:20 -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>Platform</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>
          
          <blocked>235885</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">philn</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1897691</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2022-09-11 09:08:01 -0700</bug_when>
    <thetext>fast/mediastream/RTCPeerConnection-have-local-offer.html
fast/mediastream/RTCPeerConnection-have-local-pranswer.html
fast/mediastream/RTCPeerConnection-have-remote-pranswer.html
fast/mediastream/RTCPeerConnection-page-cache.html

STDERR: ASSERTION FAILED: Unsafe to ref/deref from different threads
STDERR: m_isOwnedByMainThread == isMainThread()
STDERR: /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/RefCounted.h(114) : void WTF::RefCountedBase::applyRefDerefThreadingCheck() const

Thread 1 (Thread 0x7ee7577fe640 (LWP 85161)):
#0  WTFCrash() () at /app/webkit/Source/WTF/wtf/Assertions.cpp:328
#1  0x00007efca55540e2 in WTF::RefCountedBase::applyRefDerefThreadingCheck() const (this=0x7efc2a071770) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/RefCounted.h:114
#2  0x00007efca55541d6 in WTF::RefCountedBase::derefBase() const (this=0x7efc2a071770) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/RefCounted.h:130
#3  0x00007efca8f439ab in WTF::RefCounted&lt;WebCore::RTCSessionDescription, std::default_delete&lt;WebCore::RTCSessionDescription&gt; &gt;::deref() const (this=0x7efc2a071770) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/RefCounted.h:189
#4  0x00007efca8f3eb3c in WTF::DefaultRefDerefTraits&lt;WebCore::RTCSessionDescription&gt;::derefIfNotNull(WebCore::RTCSessionDescription*) (ptr=0x7efc2a071770) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/RefPtr.h:42
#5  0x00007efca8f398c0 in WTF::RefPtr&lt;WebCore::RTCSessionDescription, WTF::RawPtrTraits&lt;WebCore::RTCSessionDescription&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::RTCSessionDescription&gt; &gt;::~RefPtr() (this=0x7efc8c2fff80, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/RefPtr.h:74
#6  0x00007efca8f2295e in ~&lt;lambda&gt;(void) (this=0x7efc8c2fff68, __in_chrg=&lt;optimized out&gt;) at /app/webkit/Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.cpp:397
#7  0x00007efca8f2e2b0 in WTF::Detail::CallableWrapper&lt;WebCore::GStreamerMediaEndpoint::doSetRemoteDescription(const WebCore::RTCSessionDescription&amp;)::&lt;lambda(const GstSDPMessage&amp;)&gt;, void, const GstSDPMessage&amp;&gt;::~CallableWrapper(void) (this=0x7efc8c2fff60, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/Function.h:47
#8  0x00007efca8f2e2d8 in WTF::Detail::CallableWrapper&lt;WebCore::GStreamerMediaEndpoint::doSetRemoteDescription(const WebCore::RTCSessionDescription&amp;)::&lt;lambda(const GstSDPMessage&amp;)&gt;, void, const GstSDPMessage&amp;&gt;::~CallableWrapper(void) (this=0x7efc8c2fff60, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/Function.h:47
#9  0x00007efca8f3f9a6 in std::default_delete&lt;WTF::Detail::CallableWrapperBase&lt;void, GstSDPMessage const&amp;&gt; &gt;::operator()(WTF::Detail::CallableWrapperBase&lt;void, GstSDPMessage const&amp;&gt;*) const (this=0x7efc8c43f680, __ptr=0x7efc8c2fff60) at /usr/include/c++/11.3.0/bits/unique_ptr.h:85
#10 0x00007efca8f3a5ec in std::unique_ptr&lt;WTF::Detail::CallableWrapperBase&lt;void, GstSDPMessage const&amp;&gt;, std::default_delete&lt;WTF::Detail::CallableWrapperBase&lt;void, GstSDPMessage const&amp;&gt; &gt; &gt;::~unique_ptr() (this=0x7efc8c43f680, __in_chrg=&lt;optimized out&gt;) at /usr/include/c++/11.3.0/bits/unique_ptr.h:361
#11 0x00007efca8f37da2 in WTF::Function&lt;void (GstSDPMessage const&amp;)&gt;::~Function() (this=0x7efc8c43f680, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/Function.h:63
#12 0x00007efca8f37faa in WebCore::SetDescriptionCallData::~SetDescriptionCallData() (this=0x7efc8c43f680, __in_chrg=&lt;optimized out&gt;) at /app/webkit/Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.cpp:447
#13 0x00007efca8f22cfd in WebCore::destroySetDescriptionCallData(WebCore::SetDescriptionCallData*) (data=0x7efc8c43f680) at /app/webkit/Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.cpp:453
#14 0x00007efc9b51d7b7 in gst_promise_free (object=0x55e8c4365dd0 [GstPromise]) at ../gst/gstpromise.c:330
#15 0x00007efc39566a25 in gst_promise_unref (promise=&lt;optimized out&gt;) at /usr/include/gstreamer-1.0/gst/gstpromise.h:106
#16 _free_op (op=0x55e8c4329540) at ../ext/webrtc/gstwebrtcbin.c:962
#17 0x00007efc9b70c623 in g_source_callback_unref (cb_data=0x55e8c43256d0) at ../glib/gmain.c:1666
#18 g_source_callback_unref (cb_data=0x55e8c43256d0) at ../glib/gmain.c:1659
#19 0x00007efc9b70cb79 in g_source_destroy_internal (source=0x55e8c4216e30, context=0x7ee744000b60, have_lock=1) at ../glib/gmain.c:1331
#20 0x00007efc9b710320 in g_main_dispatch (context=0x7ee744000b60) at ../glib/gmain.c:3411
#21 g_main_context_dispatch (context=0x7ee744000b60) at ../glib/gmain.c:4099
#22 0x00007efc9b710638 in g_main_context_iterate (context=0x7ee744000b60, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4175
#23 0x00007efc9b710943 in g_main_loop_run (loop=0x7ee744001480) at ../glib/gmain.c:4373
#24 0x00007efc3956a171 in _gst_pc_thread (webrtc=0x7ee7640089c0 [GstWebRTCBin|webkit-webrtcbin-10]) at ../ext/webrtc/gstwebrtcbin.c:869
#25 0x00007efc9b73b3f1 in g_thread_proxy (data=0x7ee75c002b00) at ../glib/gthread.c:827
#26 0x00007efc989213ba in start_thread (arg=0x7ee7577fe640) at pthread_create.c:481
#27 0x00007efc9aff67a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897693</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-09-11 09:23:45 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/4237</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898179</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-13 04:01:43 -0700</bug_when>
    <thetext>Committed 254428@main (5b6aa896a1a4): &lt;https://commits.webkit.org/254428@main&gt;

Reviewed commits have been landed. Closing PR #4237 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898180</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-13 04:02:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/99864487&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>