GNOME Bugzilla – Bug 757372
race condition on shutdown causes crashes
Last modified: 2015-12-16 14:10:04 UTC
The downstream bug here: https://bugzilla.redhat.com/show_bug.cgi?id=1226229 has a number of crashes that are caused by dbus calls coming in and getting dispatched after shutdown has been called.
Created attachment 314497 [details] [review] GApplication: destroy the impl on shutdown It's theoretically possible (and see in the wild) for D-Bus messages to come in to the application after shutdown() has been called and while we're draining out the lingering events in the main context. Prevent this from happening by ensuring we unregister our objects on D-Bus during the shutdown process.
Thats similar to what we do in gtk now: destroy the impl object on shutdown. I guess thats a good thing
Review of attachment 314497 [details] [review]: makes sense to me. Thanks for investigating.
Attachment 314497 [details] pushed as 21b1c39 - GApplication: destroy the impl on shutdown