GNOME Bugzilla – Bug 172792
panel and gnome-menu-spec-test crash
Last modified: 2005-04-08 11:15:47 UTC
this is the backtrace it get when running gnome-menu-spec-test: the backtrace consists of calls like this, more than a thousand as you can see
+ Trace 57775
I'm using gnome-menus from today CVS HEAD
*** Bug 172793 has been marked as a duplicate of this bug. ***
Not seeing this here, so could you attach 1) the output of MENU_VERBOSE=1 gnome-menu-spec-test 2) the full backtrace 3) the contents of the menu files loaded - search for "from disk" in the log file in (1) Also, was this just introduced by recent changes to HEAD or could you see the problem before?
ok, here we go: 1) attached 2) impossible, i don't know how to get it, i put a static variable into the recursive function that causes the crash, it is reentered more than two million times before crashing. 3) attached i don't know when it was introduced was it is being quite long since i last compiled this module.
Created attachment 39776 [details] the output of gnome-menu-spec-test
Thanks, unfortunately I can't see anything strange in (1) Wrt. to (2) why not just pipe the output of gdb to a file ? One thing I'd like to find out is whether the same directory is being passed to each frame or if there's any pattern, so even pasting a few more frames will help. You forgot to attach (3)
Btw, it might be worth trying to do a completely clean build from CVS - it could have been a miscompile of some sort
Perhaps also try valgrind --tool=memcheck --leak-check=yes --show-reachable --num-callers=15 gnome-menu-spec-test too
oh sorry, it was very late. Here is the information and even more: *) the same direcrtory is passed over and over the pointers are always the same. *) I found the culprit, it is the directory /usr/share/applnk attached are the contents of that directory. Removing them fixes the segfault in both gnome-menu-spec-test and gnome-panel.
Created attachment 39791 [details] the directory causing the crash and its contents
Thanks, very helpful. Try CVS HEAD again now: 2005-04-07 Mark McLoughlin <mark@skynet.ie> Hopefully fixes crash in bug #172792. * libmenu/menu-tree.c: (menu_tree_item_unref): don't unref the parent because we don't hold a ref on it anymore.
it's fixed, thanks a lot. Awesome work you're doing, by the way.