GNOME Bugzilla – Bug 775422
g_cancellable_disconnect() deadlock
Last modified: 2018-05-24 19:16:17 UTC
I just received a deadlock issue downstream: https://bugzilla.redhat.com/show_bug.cgi?id=1398531 Which shows that a deadlock can happen when the g_cancellable_disconnect() calls g_signal_handler_disconnect() with cancellable_mutex lock, then some other parts can deadlock, even it's not obvious from the code, only from the backtrace. I'd suggest to call g_signal_handler_disconnect() only after the cancellable_mutex is unlocked. Even better would be to use a per-cancellable mutex, as suggested in bug #650252.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1226.