RESOLVED FIXED303623
[GLib] Crash in SleepDisablerGLib::acquireInhibitor() when g_get_prgname() returns NULL
https://bugs.webkit.org/show_bug.cgi?id=303623
Summary [GLib] Crash in SleepDisablerGLib::acquireInhibitor() when g_get_prgname() re...
Kdwk
Reported 2025-12-05 06:05:42 PST
According to the GLib API documentation, g_get_prgname() can return NULL (https://docs.gtk.org/glib/func.get_prgname.html). In SleepDisablerGLib.cpp:95, the result of this function is passed directly into g_variant_new(), resulting in assert string != NULL to fail and crash the WebProcess. Instead, a fallback of empty string ("") can be provided. Steps to reproduce: 1. In WebKit Dev Container, use JHBuild to build WebKit and Epiphany, then run the JHBuild Epiphany 2. Epiphany should now be running in a non-sandboxed environment, causing shouldUsePortal() (SleepDisablerGLib.cpp:89) to return false 3. Visit https://browserbench.org/Speedometer3.1/, press "Start Test" 4. Crash
Attachments
Adrian Perez
Comment 1 2025-12-05 15:22:40 PST
EWS
Comment 2 2025-12-09 07:58:45 PST
Committed 304162@main (1876825e173c): <https://commits.webkit.org/304162@main> Reviewed commits have been landed. Closing PR #54921 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.