GNOME Bugzilla – Bug 312502
crash in desktop_entry_has_category()
Last modified: 2005-08-05 12:23:21 UTC
Distribution: Unknown Package: gnome-panel Severity: critical Version: GNOME2.10.2 2.10.x Gnome-Distributor: FreeBSD GNOME Project Synopsis: Start menu crash Bugzilla-Product: gnome-panel Bugzilla-Component: Panel Bugzilla-Version: 2.10.x BugBuddy-GnomeVersion: 2.0 (2.10.1) Description: Description of the crash: When i click on start menu he's crash. Steps to reproduce the crash: 1. 2. 3. Expected Results: How often does this happen? Additional Information: Debugging Information: Backtrace was generated from '/usr/X11R6/bin/gnome-panel' (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100080] (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[Switching to LWP 100080] 0x286856a7 in wait4 () from /lib/libc.so.6
+ Trace 62182
Thread 1 (LWP 100080)
------- Bug moved to this database by unknown@gnome.bugs 2005-08-03 19:55 UTC -------
Seems to be a unique stack trace. Can you compile with debugging symbols, please (-g flag) and repost the gdb trace. Does it happen every time?
Yes, every time. Sometimes i can view menu without crash. How i can start gnome-panel with gdb? Because when start gnome gnome-panel start automaticaly. # uname -v FreeBSD 6.0-BETA2 #3: Thu Aug 4 09:36:30 BRT 2005 root@noc.grupos.com.br:/usr/obj/usr/src/sys/NOC
$ gnome-session-remove gnome-panel $ gdb /path/to/gnome-panel but you may also recompile, make it crash and copy the stack trace from bug- buddy. http://live.gnome.org/GettingTraces may contain helpful instructions. Thank you for your efforts.
Wheel, attach new backtrace generated with: # cat run run thread apply all bt #gdb -batch /usr/X11R6/bin/gnome-panel -x run > gnome-panel.gdb 2>&1
Created attachment 50238 [details] gdb file
Marcus' trace from the attachment Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x80c9000 (LWP 100112)] 0x2861fe9e in desktop_entry_has_category () from /usr/X11R6/lib/libgnome-menu. so.0 [New Thread 0x80c9200 (LWP 100109)]
+ Trace 62217
Thread 2 (Thread 0x80c9000 (LWP 100112))
looks like a crash in libgnome, changing product. Retitling. desktop_entry_has_category () could be the culprit can you recompile libgnome with the -g compiler flag as well, please, and post "thread apply all bt full". that would be extremely helpful for developers. Does this happen as well if you create a new user and start Gnome for it?
New backtrace... -- (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...warning: Unable to get location for thread creation breakpoint: generic error [New LWP 100094] [New Thread 0x80c9000 (LWP 100094)] (gnome-panel:30009): Gtk-WARNING **: Theme directory scalable/emblems of theme Flat-Blue has no size field Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x80c9000 (LWP 100110)] 0x28623350 in desktop_entry_has_category (entry=0x82ecd00, category=0x82df4c0 "Qt") at desktop-entries.c:533 533 desktop-entries.c: No such file or directory. in desktop-entries.c [New Thread 0x80c9200 (LWP 100116)]
+ Trace 62221
Thread 2 (Thread 0x80c9000 (LWP 100110))
--
Good. Confirming so that developers can take a look at it.
Cool, thanks for the helpful backtrace. I think I fixed this bug on HEAD a while back. I've committed the fix to the gnome-2-10 branch and I'll attach the patch here too. 2005-08-05 Mark McLoughlin <mark@skynet.ie> Backport fix from HEAD which fixes crasher in bug #312502 * libmenu/desktop-entries.c: (desktop_entry_add_legacy_category): Fix off-by-one error.
Created attachment 50257 [details] [review] gnome-menus-fix-off-by-one-error.patch
Marking the patch committed as per Comment #10