<?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>281298</bug_id>
          
          <creation_ts>2024-10-11 05:54:22 -0700</creation_ts>
          <short_desc>[WPE] REGRESSION(284269@main): Inspector crashes due to missing GRefPtr specialization for GResource</short_desc>
          <delta_ts>2024-10-14 01:53:49 -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>Tools / Tests</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=186594</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=281226</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="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>psaavedra</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2067188</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2024-10-11 05:54:22 -0700</bug_when>
    <thetext>Relevant backtrace:

#0  g_type_check_instance_is_fundamentally_a (type_instance=0x64b244c602e0, fundamental_type=0x50) at ../glib/gobject/gtype.c:4153
#1  0x00007aadfe8fdf20 in g_object_unref (_object=0x64b244c602e0) at ../glib/gobject/gobject.c:4327
#2  0x00007aadfb18507d in WTF::derefGPtr&lt;_GResource&gt; (ptr=0x64b244c602e0) at WTF/Headers/wtf/glib/GRefPtr.h:272
#3  WTF::GRefPtr&lt;_GResource&gt;::~GRefPtr (this=&lt;optimized out&gt;) at WTF/Headers/wtf/glib/GRefPtr.h:82
#4  Inspector::backendCommands()::$_0::operator()() const (this=&lt;optimized out&gt;) at ../Source/JavaScriptCore/inspector/remote/glib/RemoteInspectorUtils.cpp:58
#5  std::__invoke_impl&lt;void, Inspector::backendCommands()::$_0&gt;(std::__invoke_other, Inspector::backendCommands()::$_0&amp;&amp;) (__f=&lt;optimized out&gt;) at &apos;/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/invoke.h:61
#6  std::__invoke&lt;Inspector::backendCommands()::$_0&gt;(Inspector::backendCommands()::$_0&amp;&amp;) (__fn=&lt;optimized out&gt;) at /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/invoke.h:96
#7  std::call_once&lt;Inspector::backendCommands()::$_0&gt;(std::once_flag&amp;, Inspector::backendCommands()::$_0&amp;&amp;)::{lambda()#1}::operator()() const (this=&lt;optimized out&gt;)
    at /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/mutex:909

Notice how in frame #1 there&apos;s a g_object_unref() call, and an internal type check
fails. Opening a core dump in a debugger shows that the pointer in question is that
of the GResource instance for the inspector resource files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067191</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2024-10-11 06:04:25 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/35037</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067330</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-11 13:42:36 -0700</bug_when>
    <thetext>Committed 285035@main (b076eff3f70e): &lt;https://commits.webkit.org/285035@main&gt;

Reviewed commits have been landed. Closing PR #35037 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067331</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-11 13:43:49 -0700</bug_when>
    <thetext>&lt;rdar://problem/137770746&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>