GNOME Bugzilla – Bug 528787
Crash on closing windows
Last modified: 2008-05-19 00:15:01 UTC
Lately I have been noticing quite a few crashes when I close windows. The easiest way to reproduce this is simply to open a text file in gedit, and close it from the window decoration, not from the file menu. I'm using svn r3682. Starting program: /usr/bin/metacity --replace [Thread debugging using libthread_db enabled] [New Thread 0xb747a720 (LWP 10170)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb747a720 (LWP 10170)] 0x0805d20e in meta_compositor_set_active_window (compositor=0x815f550, screen=0x8114b98, window=0x83561e8) at core/compositor.c:2769 2769 old_focus = find_window_for_screen (screen,
+ Trace 195569
Thread 1 (Thread 0xb747a720 (LWP 10170))
Closing gedit isn't a reliable way to reproduce this any longer. Instead it seems to happen every now and again when I close any window, how doesn't seem to matter.
The crash happens frequently for me when rapidly closing a recent opened window from the decorator (gedit included). When I close it, the screen freezes and I need to restart metacity to get a functional X back. I'm unable to get a trace, but for the record I received this: [freakcode@atena ~]$ metacity --replace 78c5eeb7-e94e-2c51-705a2e02-561ed883 is dumped Terminado
Same here; can trigger reliably by xkill'ing epiphany then reopening it (with lots of windows in the saved session). Sample backtrace:
+ Trace 196564
... (gdb) p info->focus_window $1 = (MetaWindow *) 0x825c018 (gdb) p info->focus_window->frame $2 = (MetaFrame *) 0x6172745f (gdb) p info->focus_window->frame->xwindow Cannot access memory at address 0x61727463 (gdb) p (char *) info->focus_window $3 = 0x825c018 "x�%\bing on error_trap_pop, traps = 1, roundtrip = 0\n"
Created attachment 110254 [details] [review] compositor-seg.patch Possible patch.
I'm not at my metacity devel system for the next two weeks, but I'll take a look when I get back, but provisionally, that looks like a good patch
I tried the patch against svn r3702, the crashes/freezes when closing windows (specially gedit windows, could reproduce everytime here) have gone away ;)
I'm also using r3702, and I haven't seen any crashes since I applied the patch.
Ed, thanks. I've committed your patch to trunk, revision 3716