GNOME Bugzilla – Bug 708420
segfault in gnome-shell every once in a while
Last modified: 2013-09-26 16:56:19 UTC
Randomly I can see gnome-shell segfault on me (it respawns usually, sometimes without gnome-settings-daemon though.. they crash at about the same time; g-s-d claiming a bus error, so I assume g-s disappears first). 'most of the times' I see it when doing click actions in 'Files' (nautilus), but it's not limited to this. A typical stack trace looks like (gdb) bt full
+ Trace 232506
(note the address 0xaaaaaaaaaaaaaaa)
(That was still gnome-shell 3.9.91; don't know yet if this changes with 3.9.92... update running)
Created attachment 255393 [details] [review] MetaIdleMonitor: protect the monitor instance while calling destroy notify The destroy notify for a DBus watch holds a reference to the IdleMonitor, but the IdleMonitorWatch object doesn't (it knows all watches will be destroyed before the monitor is, so it doesn't need one). This means that the DBus watch reference can be the only one keeping the IdleMonitor alive (expecially true for device idle monitors, which are only used by g-s-d/cursor), and that means that calling the destroy notify freezes the monitor (and the next X calls access garbage).
Would be good to have for 3.10.1
Review of attachment 255393 [details] [review]: OK.
Attachment 255393 [details] pushed as 85c2bc2 - MetaIdleMonitor: protect the monitor instance while calling destroy notify