RESOLVED FIXED Bug 201771
[WPE][GTK] BubblewrapLauncher leaks D-Bus proxy sockets
https://bugs.webkit.org/show_bug.cgi?id=201771
Summary [WPE][GTK] BubblewrapLauncher leaks D-Bus proxy sockets
Michael Catanzaro
Reported 2019-09-13 14:06:44 PDT
I have a bunch of D-Bus proxy sockets leaked on the filesystem, created by the XDGDBusProxyLauncher class in BubblewrapLauncher.cpp. We shouldn't leak temporary files to disk; they should be removed when the web process quits. It's kinda hard to do if the xdg-dbus-proxy process itself isn't responsible for removing its socket. Why does WebKit have to create the socket file itself?
Attachments
Patch (3.01 KB, patch)
2022-02-10 04:32 PST, Carlos Garcia Campos
no flags
Patch (3.01 KB, patch)
2022-02-10 05:56 PST, Carlos Garcia Campos
mcatanzaro: review+
Carlos Garcia Campos
Comment 1 2022-02-10 04:28:55 PST
xdg-dbus-proxy removes the socket when the sync fd is closed by the application. In most of the cases the xdg-dbus-proxy process is killed before the sync fd is closed and the socket file is leaked. We should explicitly close the sync fd.
Carlos Garcia Campos
Comment 2 2022-02-10 04:32:36 PST
Created attachment 451518 [details] Patch This patch applyes on top of patch attached to bug #236437
Carlos Garcia Campos
Comment 3 2022-02-10 05:56:17 PST
Carlos Garcia Campos
Comment 4 2022-02-11 00:32:48 PST
Note You need to log in before you can comment on or make changes to this bug.