GNOME Bugzilla – Bug 697128
deadlock in g_dbus_connection_get_type()
Last modified: 2013-04-02 17:59:35 UTC
I'm writing an app that uses gdbus-codegen. When I create the proxy sometimes it deadlock. I attached gdb and 2 threads are stuck in g_dbus_connection_get_type():
+ Trace 231713
Thread 4 (Thread 0x7f99bf27e700 (LWP 18546))
Hm, don't trust bugzilla for the backtrace, it shows only the first thread. Click on "Trace 231713" to get everything.
Looks like dconfsettings is creating a thread that does g_bus_get_sync() at the very same time than my main thread that creates the proxy, so both goes into g_dbus_connection_get_type() at the same time, and something goes wrong. Note that my app does not use any thread by itself. And this is with glib 2.36.0
*** This bug has been marked as a duplicate of bug 674885 ***