NEW 267261
Regression: Crashes through a non-local X11 connection
https://bugs.webkit.org/show_bug.cgi?id=267261
Summary Regression: Crashes through a non-local X11 connection
Martin Demlon
Reported 2024-01-09 00:01:50 PST
Somewhere between 2.40.3 and 2.42.4, webkit stopped working via non-local X11. Actually (and that might be relevant), it was sort-of broken before, where it required WEBKIT_DISABLE_COMPOSITING_MODE=1 to work. I have set up a test system where the 4.0 API corresponds to webkit 2.42.4 and the 4.1 API corresponds to 2.40.3 (but the behaviour is independent of the API version, it just depends on the webkit version). With this, consider: # 2.40.3 without env hack $ ssh -X localhost /usr/lib/i386-linux-gnu/webkit2gtk-4.1/MiniBrowser libEGL warning: DRI2: failed to authenticate (WebKitWebProcess:2590): Gdk-WARNING **: 08:19:55.350: The program 'WebKitWebProcess' received an X Window System error. This probably reflects a bug in the program. The error was 'BadRequest (invalid request code or no such operation)'. (Details: serial 169 error_code 1 request_code 155 (unknown) minor_code 1) 9[...] ** (MiniBrowser:2565): WARNING **: 08:19:55.354: WebProcess CRASHED # 2.40.3 with env hack $ ssh -X localhost "env WEBKIT_DISABLE_COMPOSITING_MODE=1 /usr/lib/i386-linux-gnu/webkit2gtk-4.1/MiniBrowser" (works) # 2.42.4 $ ssh -X localhost "env WEBKIT_DISABLE_COMPOSITING_MODE=1 /usr/lib/i386-linux-gnu/webkit2gtk-4.0/MiniBrowser" libEGL warning: DRI2: failed to authenticate libEGL warning: failed to open /dev/dri/renderD128: Permission denied (MiniBrowser:2912): Gdk-WARNING **: 08:25:17.975: The program 'MiniBrowser' received an X Window System error. This probably reflects a bug in the program. The error was 'BadRequest (invalid request code or no such operation)'. (Details: serial 158 error_code 1 request_code 155 (unknown) minor_code 1) [...] ... and the window goes down. The behaviour and the request code are identical without disabling the compositing mode, except the serial reproducibly is 149 then on my box (the 158 is reproducible, too). The crashes occur in the backend process, so I'm asking for forgiveness for not providing a traceback (I keep forgetting how to do that, but I'll look it up if the crash isn't immediately reproducible). [ancillary information in case this doesn't immediately happen elsewhere: this is a Debian bookworm box with an i386 userland and Haswell i915 graphics]
Attachments
Martin W
Comment 1 2024-04-30 00:54:03 PDT
Also seen on a Mageia 9 x86_64 system with the following hardware/driver mix: % inxi -G Graphics: Device-1: AMD Renoir driver: amdgpu v: kernel Display: server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X: loaded: amdgpu,v4l dri: swrast gpu: amdgpu resolution: 1920x1080~60Hz API: OpenGL v: 4.5 Mesa 24.0.5 renderer: llvmpipe (LLVM 15.0.6 256 bits) This is affecting use of the Mageia system administration GUI tool, as reported in https://bugs.mageia.org/show_bug.cgi?id=32185. Other users reporting this bug have different hardware, so I think it is hardware independent. The base regression appeared some time between 2.38.6 and 2.40.2. I have not found time to bisect this. I have however bisected the inability to work round this bug using WEBKIT_DISABLE_COMPOSITING_MODE=1. That was introduced by https://github.com/WebKit/WebKit/pull/12852
Note You need to log in before you can comment on or make changes to this bug.