GNOME Bugzilla – Bug 531943
Crash in invoke_notifies
Last modified: 2010-04-01 12:12:48 UTC
gnome-panel crashes when launching Run Dialog. How to reproduce: just press keyboard shourtcut for launching the Run Dialog (Ctrl-Alt-r in my case, Alt-F2 by default IIRC). What happened: Run dialog window appears for very short time (it even unable to finish drawing of the "child" elements like buttons) and gnome-panel receives SIGSEGV. Versions: gnome-panel-2.22.1.3, gnome-menus-2.22.1, glib-2.16.3 "Ordinal" backtrace ('bt'): #0 0x28f00a1c in IA__g_slist_copy (list=0x6f2e6563) at gslist.c:475 #1 0x28d99814 in invoke_notifies (monitor=0x29f6fa60, event=MENU_MONITOR_EVENT_DELETED, path=0x29f6b0d0 "/etc/xdg/menus/gnome-applications-merged") at menu-monitor.c:72 #2 0x28d9992f in emit_events_in_idle () at menu-monitor.c:122 #3 0x28ee230c in g_idle_dispatch (source=0x29f67080, callback=0x28d998a3 <emit_events_in_idle>, user_data=0x0) at gmain.c:4087 #4 0x28ede3ba in g_main_dispatch (context=0x2932da90) at gmain.c:2009 #5 0x28edf892 in IA__g_main_context_dispatch (context=0x2932da90) at gmain.c:2561 #6 0x28edfde6 in g_main_context_iterate (context=0x2932da90, block=1, dispatch=1, self=0x293080d0) at gmain.c:2642 #7 0x28ee05bd in IA__g_main_loop_run (loop=0x297e7bb0) at gmain.c:2850 #8 0x286eb5c3 in gtk_main () from /usr/local/lib/libgtk-x11-2.0.so.0 #9 0x0806672f in main (argc=7, argv=0xbfbfe9bc) at main.c:95 "Full" backtrace ('bt full'): #0 0x28f00a1c in IA__g_slist_copy (list=0x6f2e6563) at gslist.c:475 last = (GSList *) 0x28486400 new_list = (GSList *) 0x29f96610 #1 0x28d99814 in invoke_notifies (monitor=0x29f6fa60, event=MENU_MONITOR_EVENT_DELETED, path=0x29f6b0d0 "/etc/xdg/menus/gnome-applications-merged") at menu-monitor.c:72 copy = (GSList *) 0x29301100 tmp = (GSList *) 0x28d998a3 #2 0x28d9992f in emit_events_in_idle () at menu-monitor.c:122 event_info = (MenuMonitorEventInfo *) 0x293b6e90 events_to_emit = (GSList *) 0x29f961d8 tmp = (GSList *) 0x29f961d8 #3 0x28ee230c in g_idle_dispatch (source=0x29f67080, callback=0x28d998a3 <emit_events_in_idle>, user_data=0x0) at gmain.c:4087 No locals. #4 0x28ede3ba in g_main_dispatch (context=0x2932da90) at gmain.c:2009 dispatch = (gboolean (*)(GSource *, GSourceFunc, gpointer)) 0x28ee22c0 <g_idle_dispatch> was_in_call = 0 user_data = 0x0 callback = 0x28d998a3 <emit_events_in_idle> cb_funcs = (GSourceCallbackFuncs *) 0x28f613fc cb_data = 0x29faa5b0 need_destroy = 687216568 current_source_link = {data = 0x29f67080, next = 0x0} source = (GSource *) 0x29f67080 current = (GMainDispatch *) 0x2930b638 i = 0 __PRETTY_FUNCTION__ = "g_main_dispatch" #5 0x28edf892 in IA__g_main_context_dispatch (context=0x2932da90) at gmain.c:2561 No locals. #6 0x28edfde6 in g_main_context_iterate (context=0x2932da90, block=1, dispatch=1, self=0x293080d0) at gmain.c:2642 max_priority = 200 timeout = 0 some_ready = 1 nfds = 19 allocated_nfds = 19 fds = (GPollFD *) 0x2932b880 __PRETTY_FUNCTION__ = "g_main_context_iterate" #7 0x28ee05bd in IA__g_main_loop_run (loop=0x297e7bb0) at gmain.c:2850 self = (GThread *) 0x293080d0 __PRETTY_FUNCTION__ = "IA__g_main_loop_run" #8 0x286eb5c3 in gtk_main () from /usr/local/lib/libgtk-x11-2.0.so.0 No symbol table info available. #9 0x0806672f in main (argc=7, argv=0xbfbfe9bc) at main.c:95 context = (GOptionContext *) 0x29308040 program = (GnomeProgram *) 0x2930e838
Accurdingli to Jeremy Messenger (http://lists.freebsd.org/pipermail/freebsd-gnome/2008-June/020320.html): : After check in your backtraces again, it's gnome-menus problem rather than : gnome-panel. You should change your bugzilla from gnome-panel to : gnome-menus. Therefore, "product" is changed from gnome-panel to gnome-menus.
s/Accurdingli/Accordingly/ in previous comment. Sorry for spam.
Is it always reproducable? Do you have a /etc/xdg/menus/gnome-applications-merged directory?
: Is it always reproducable? Yes except I left machine turned on (and session open) overnight. If I left session overnight, then on crash may or may not occur. : Do you have a /etc/xdg/menus/gnome-applications-merged directory? No. Only one directory with similar name is /usr/local/etc/xdg/menus/applications-merged
How to reproduce with fresh newly created account: 1. create new user 2. create .xinitrc with only one line gnome-session 3. start X11 by startx 4. remove menu named "Menu Bar" (menu represented by "Gnome foot" + "Applications" + "Palces" + "System") from the top panel 5. add menu named "Main menu" (menu represented by "Gnome foot" icon only) to the top panel 6. press Alt+F2 Seems like the key point is presence of "Main menu" ("Gnome foot" only) instead of default "Menu Bar" ("Gnome foot" + "Applications" + "Palces" + "System") and, possible, launchers on panel.
I can't reproduce and I didn't see any duplicate bug, so something is definitely weird. Andrew: is this still something you can experience? FWIW: it's surprising that you receive MENU_MONITOR_EVENT_DELETED for a directory that doesn't exist. And looking at the code, I don't see how the list that causes the crash in g_slist_copy() can be corrupted. So I wonder if this could be an issue on your system at that time.
Sorry, at the moment I'm under high workload. But definitelly I'll try to rebuild related packages with debug info, remove workaround and try again as soon be able to do it.
Hey Andrew :) Are there any news? Would be nice if this high quality bug would be wasted :)
Andrew, please reopen this bug if you have any news. Thanks in advance.
Sorry, if I didn't found the time for restore configuration of these days, I unlikely find it in the feasible future :-( Sorry for disturbing you...