[WPE][GTK] bwrap, flatpak-spawn, and xdg-dbus-proxy processes remain forever
https://bugs.webkit.org/show_bug.cgi?id=279913
Summary [WPE][GTK] bwrap, flatpak-spawn, and xdg-dbus-proxy processes remain forever
Michael Catanzaro
Reported 2024-09-18 11:30:41 PDT Comment hidden (obsolete)
Attachments
Michael Catanzaro
Comment 1 2024-09-18 11:44:17 PDT Comment hidden (obsolete)
Michael Catanzaro
Comment 2 2024-09-18 12:21:09 PDT Comment hidden (obsolete)
Michael Catanzaro
Comment 3 2024-09-18 15:37:02 PDT Comment hidden (obsolete)
Michael Catanzaro
Comment 4 2024-09-19 04:32:05 PDT Comment hidden (obsolete)
Michael Catanzaro
Comment 5 2024-09-19 12:55:48 PDT Comment hidden (obsolete)
Michael Catanzaro
Comment 6 2024-09-19 13:11:44 PDT
(In reply to Michael Catanzaro from comment #0) > I tricked myself into thinking bug #262794 would fix this, but apparently > not. Prior to bug #262794, we really *did* leak suspended processes in the web process cache. I guess there's just a different process leak now. This new problem appears to be a leak of only the bwrap and flatpak-spawn intermediate processes, which is weird, because those should surely notice and quit when their child does.
Michael Catanzaro
Comment 7 2024-09-19 13:33:28 PDT
(In reply to Michael Catanzaro from comment #6) > This new problem appears to be a leak of only the bwrap and flatpak-spawn > intermediate processes, which is weird, because those should surely notice > and quit when their child does. We don't have any control over these intermediate processes, either. It must be a bug in flatpak itself.
Michael Catanzaro
Comment 8 2024-09-19 13:46:21 PDT
(In reply to Michael Catanzaro from comment #6) > This new problem appears to be a leak of only the bwrap and flatpak-spawn > intermediate processes, which is weird, because those should surely notice > and quit when their child does. Also the xdg-dbus-proxy processes. The actual WebKit auxiliary processes have quit, after noticing their connection to the UI process closed.
Michael Catanzaro
Comment 9 2024-09-19 14:00:36 PDT
Inspecting flatpak-spawn.c, I think the only way this happens is if the flatpak portal doesn't emit the SpawnExited D-Bus signal. (Or if flatpak-spawn is somehow broken and doesn't receive it for some reason.) Since xdg-dbus-proxy is still running as well, I *assume* the flatpak portal has failed to notice the WebKit auxiliary process exiting.
Michael Catanzaro
Comment 10 2024-09-19 14:02:42 PDT Comment hidden (obsolete)
Michael Catanzaro
Comment 11 2024-09-19 14:40:00 PDT Comment hidden (obsolete)
Michael Catanzaro
Comment 12 2024-09-20 05:41:35 PDT Comment hidden (obsolete)
Michael Catanzaro
Comment 13 2024-09-20 06:22:44 PDT Comment hidden (obsolete)
Michael Catanzaro
Comment 14 2024-09-27 11:32:32 PDT
Currently I have: * 7 leaked flatpak-spawn processes for Newsflash * 11 leaked bwrap processes for Newsflash * 2 leaked xdg-dbus-proxy process for Newsflash * 0 leaked WebKit auxiliary processes for Newsflash I think we have to conclude this is a flatpak bug. WebKit has no control over when these processes exit.
Michael Catanzaro
Comment 15 2024-09-27 11:40:18 PDT
Note You need to log in before you can comment on or make changes to this bug.