GNOME Bugzilla – Bug 632884
Possible deadlock in g_object_remove_toggle_ref()
Last modified: 2010-10-22 12:54:53 UTC
See the commit message of the attached patch for a description of the problem. The proposed patch WorksForMe(tm), but I'm not too confident about moving the call to g_object_unref() out of the guarded section being safe and sound, so comments welcome.
Created attachment 172993 [details] [review] Fix deadlock in g_object_remove_toggle_ref() The code section guarded with toggle_refs_mutex includes a call to g_object_unref(), which may call toggle_refs_notify(). As the latter tries to acquire the same mutex, glib locks up.
Created attachment 172996 [details] Test case Indeed, here's a test case. Thanks for finding this
Thanks