<?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>278380</bug_id>
          
          <creation_ts>2024-08-20 08:01:10 -0700</creation_ts>
          <short_desc>REGRESSION(282416@main): [GTK] link error with wayland and GBM disabled</short_desc>
          <delta_ts>2024-08-21 05:21:19 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</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=278461</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="Jim Mason">jmason</reporter>
          <assigned_to name="Carlos Garcia Campos">cgarcia</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2054062</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Mason">jmason</who>
    <bug_when>2024-08-20 08:01:10 -0700</bug_when>
    <thetext>Platform X11
GBM off

This commit has broken my X11, non-GBM build in a huge way.

First, there is a link error with an undefined symbol WebKit::Display::isWayland():

Undefined                       first referenced
 symbol                             in file
_ZNK6WebKit7Display9isWaylandEv     Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/API/glib/WebKitProtocolHandler.cpp.o


Second, if I coax the build to completion by providing a trivial implementation for `isWayland` (I simply have it return false), the build completes, but the WebKitWebProcess crashes on WebGL and WebGL2 pages.  It also randomly crashes on other webpages, including www.google.com.  I am trying to capture a backtrace, but it&apos;s proving difficult for some reason.

This ought to be easily reproducable on pretty much any X11 build, certainly the undefined symbol error.  More worrying is the general instability that it has brought.

If I revert the 282416@main commit, then everything builds and runs normally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054342</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2024-08-20 22:27:43 -0700</bug_when>
    <thetext>GTK4 or GTK3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054354</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2024-08-20 22:54:19 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/32516</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054355</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2024-08-20 22:55:11 -0700</bug_when>
    <thetext>I can&apos;t reproduce the crashes, could you share all the build options and the output of webkit://gpu?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054384</commentid>
    <comment_count>4</comment_count>
    <who name="Jim Mason">jmason</who>
    <bug_when>2024-08-21 03:34:14 -0700</bug_when>
    <thetext>Thanks, sorry for the dilatory reply.  I was out riding my motorbike on the twisties, which is what I do mostly when I am not making life more interesting for you and the Igalia team ;-)

I am happy to report that the patch clears the build issue.  Unfortunately, the crashing WebKitWebProcess remains.

It is a GTK3 build.  webkit://gpu and the cmake options follow.  If you need something more, just let me know.

By the way, I investigated the crash some more and cannot get a backtrace.  gdb is always reporting that the &apos;current thread has terminated&apos;.  I have never encountered this before; normally with SIGSEGV etc, it stops in gdb before exiting.  Perhaps this is a clue.


-- Enabled features:
--  ENABLE_BUBBLEWRAP_SANDBOX ..................... OFF
--  ENABLE_DOCUMENTATION                            OFF
--  ENABLE_DRAG_SUPPORT ........................... ON
--  ENABLE_GAMEPAD                                  OFF
--  ENABLE_INTROSPECTION .......................... ON
--  ENABLE_JOURNALD_LOG                             OFF
--  ENABLE_MINIBROWSER ............................ ON
--  ENABLE_PDFJS                                    ON
--  ENABLE_QUARTZ_TARGET .......................... OFF
--  ENABLE_SPELLCHECK                               ON
--  ENABLE_TOUCH_EVENTS ........................... ON
--  ENABLE_VIDEO                                    ON
--  ENABLE_WAYLAND_TARGET ......................... OFF
--  ENABLE_WEBDRIVER                                ON
--  ENABLE_WEB_AUDIO .............................. ON
--  ENABLE_X11_TARGET                               ON
--  USE_AVIF ...................................... OFF
--  USE_GBM                                         OFF
--  USE_GSTREAMER_TRANSCODER ...................... ON
--  USE_GSTREAMER_WEBRTC                            OFF
--  USE_GTK4 ...................................... OFF
--  USE_JPEGXL                                      OFF
--  USE_LCMS ...................................... ON
--  USE_LIBBACKTRACE                                OFF
--  USE_LIBDRM .................................... ON
--  USE_LIBHYPHEN                                   OFF
--  USE_LIBSECRET ................................. ON
--  USE_SKIA                                        OFF
--  USE_SOUP2 ..................................... ON
--  USE_WOFF2                                       ON


{
    &quot;Version Information&quot;: {
        &quot;WebKit version&quot;: &quot;WebKitGTK 2.45.6 (r282487)&quot;,
        &quot;Operating system&quot;: &quot;SunOS 5.11 11.3 i86pc&quot;,
        &quot;Desktop&quot;: &quot;GNOME&quot;,
        &quot;Cairo version&quot;: &quot;1.17.8 (build) 1.17.8 (runtime)&quot;,
        &quot;GStreamer version&quot;: &quot;1.20.4 (build) GStreamer 1.20.4 (runtime)&quot;,
        &quot;GTK version&quot;: &quot;3.24.38 (build) 3.24.38 (runtime)&quot;
    },
    &quot;Display Information&quot;: {
        &quot;Identifier&quot;: &quot;1&quot;,
        &quot;Type&quot;: &quot;X11&quot;,
        &quot;Screen geometry&quot;: &quot;0,0 1920x1080&quot;,
        &quot;Screen work area&quot;: &quot;0,28 1920x1024&quot;,
        &quot;Depth&quot;: &quot;24&quot;,
        &quot;Bits per color component&quot;: &quot;8&quot;,
        &quot;Font Scaling DPI&quot;: &quot;96&quot;,
        &quot;Screen DPI&quot;: &quot;93.60940451422194&quot;,
        &quot;VBlank type&quot;: &quot;Timer&quot;,
        &quot;VBlank refresh rate&quot;: &quot;60Hz&quot;
    },
    &quot;Hardware Acceleration Information&quot;: {
        &quot;Policy&quot;: &quot;never&quot;,
        &quot;WebGL enabled&quot;: &quot;Yes&quot;
    }
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054390</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2024-08-21 04:57:39 -0700</bug_when>
    <thetext>Ok, let&apos;s use this bug for the build failure, that we can fix now, and open a new bug to continue investigating the crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054391</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-21 05:02:43 -0700</bug_when>
    <thetext>Committed 282555@main (f83fd3eb47e9): &lt;https://commits.webkit.org/282555@main&gt;

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

    </bug>

</bugzilla>