[Webkit-unassigned] [Bug 161481] [GTK] Use GTestDBus instead of dbus-launch in WebKitTestBus.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 31 10:50:44 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=161481

--- Comment #5 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Comment on attachment 293416
  --> https://bugs.webkit.org/attachment.cgi?id=293416
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=293416&action=review

> Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestBus.cpp:38
> +    g_setenv("DISPLAY", display.data(), FALSE);

So the problem here is it's too late to be doing setenv; we've already initialized threads. Some other thread could call getenv at the same time -- there are getenv calls in many many places -- and crash. It's not a theoretical issue, I've seen multiple cases of this crashing gnome-session.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161031/dbe196f6/attachment-0001.html>


More information about the webkit-unassigned mailing list