Launch a DBus session in xvfb.py
This CL ensures DBUS_SESSION_BUS_ADDRESS is set when running tests. This is necessary because otherwise the dbus daemon will be autolaunched on attempted first use. This is problematic because glib allocates memory between fork() and exec() for the daemon, causing deadlock if the global malloc lock is held. This is fixed by glib commit [1], but this workaround will be necessary until the fix rolls into Chromium's CI. [1] https://gitlab.gnome.org/GNOME/glib/commit/f2917459f745bebf931bccd5cc2c33aa81ef4d12 BUG=1027852 R=dpranke NOPRESUBMIT=true Change-Id: Iea6d702d4d4c724ad44d0aa82522175f6b3a78e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1937507 Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Auto-Submit: Thomas Anderson <thomasanderson@chromium.org> Reviewed-by:Dirk Pranke <dpranke@chromium.org> Cr-Commit-Position: refs/heads/master@{#720698}
Showing
Please register or sign in to comment