Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209582 - dev-util/desktop-file-utils-0.14 - update-desktop-database segfaults
Summary: dev-util/desktop-file-utils-0.14 - update-desktop-database segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 19:52 UTC by Peter Karlsson
Modified: 2008-02-10 21:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
backtrace log of update-desktop-database (backtrace.log,605 bytes, text/plain)
2008-02-10 21:10 UTC, Peter Karlsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Karlsson 2008-02-10 19:52:15 UTC
update-desktop-database segfaults when run. I'm not sure what this app/command does or if it's necessary but it seems portage is using it somehow. I detected this when I ran dmesg and noticed notes about segfault like the following:

update-desktop-[10610]: segfault at 00000000 eip 080494d5 esp bfef7740 error 4


Reproducible: Always

Steps to Reproduce:
1.run update-desktop-database
2.n/a
3.n/a

Actual Results:  
Search path is now: [/usr/local/share/applications, /usr/share/applications, /usr/share/applications]
Could not create cache file in directory '/usr/local/share/applications':
        Error opening directory '/usr/local/share/applications': No such file or directory
File '/usr/share/applications/xfce4-autostart-editor.desktop' lacks MimeType key
File '/usr/share/applications/amdcccle-ati-drivers.desktop' lacks MimeType key

(update-desktop-database:10610): GLib-CRITICAL **: g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault

Expected Results:  
?

After googling this seems like a common problem with desktop-file-utils. For instance see: 
http://www.mail-archive.com/debian-bugs-closed@lists.debian.org/msg159357.html
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-10 19:58:54 UTC
Reopen with a backtrace and emerge --info output; thanks.

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2008-02-10 20:00:37 UTC
Might be different issue, but found this:

Possible fix, http://webcvs.freedesktop.org/menus/desktop-file-utils/src/update-desktop-database.c?r1=1.8&r2=1.9&view=patch

Discussion,

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460532
Comment 3 Peter Karlsson 2008-02-10 21:10:45 UTC
Created attachment 143164 [details]
backtrace log of update-desktop-database
Comment 4 Peter Karlsson 2008-02-10 21:11:41 UTC
emerge --info:

Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6_080204_SMP_PREEMPT i686)
=================================================================
System uname: 2.6.23-gentoo-r6_080204_SMP_PREEMPT i686 AMD Athlon(tm) X2 Dual Core Processor BE-2400
Timestamp of tree: Sun, 10 Feb 2008 12:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11/app-defaults/ /usr/share/applications/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/termi
nfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linu
x/gentoo http://ftp.du.se/pub/os/gentoo ftp://ftp.du.se/pub/os/gentoo http://mirror.pudas.net/gentoo http://dist
files.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LINGUAS="en sv en_GB sv_SE sv-SE"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --
delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files
/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi aim alsa ansi asf audiofile avi bash-completion bcmath berkdb bitmap-font
s blas bzip2 bzlib cairo caps cdparanoia cdr cli cracklib crypt cscope css ctype cups dga directfb divx4linux dl
loader doc dri dts dv dvb dvd dvdr dvdread emacs encode examples exif fbcon ffmpeg fftw filepicker flac foomatic
db fortran freetype ftp gd gdbm gif gimp ginac glitz glut gmp gnutls gphoto2 gpm gtk2 guile iconv icq imagemagic
k imap imlib isdnlog jabber java jpeg junit kerberos ladcca lapack latex lcms leim libdts liblzo libwww lm_senso
rs mad matroska memlimit mhash midi mime mjpeg mmap mmx mng mozilla moznopango mozsvg mp3 mpeg mplayer mudflap m
ysql mythtv ncurses nls nowin noxft nptl nptlonly ogg openal openexr opengl openmp pam pcntl pcre pdf pdflib per
l pic pie plotutils png portaudio posix postgresql ppds pppd ptp2 python qhull quicktime readline real recode re
flection restrict-javascript ruby sasl scanner sdl session shared sharedmem smp sndfile sockets sox speex spl sq
lite sse sse2 ssl svg symlink sysvipc szip tcltk tcpd tetex theora threads tiff timidity toolame truetype truety
pe-fonts type1-fonts unicode usb v4l v4l2 vcd videos vorbis win32codecs wmf wxgtk1 x264 x86 xanim xforms xine xo
rg xpm xprint xv xvid xvmc zlib zvbi" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare ds
noop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share sh
m softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file a
uthz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock def
late dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mim
e mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon
" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse magellan" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz63
3 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sv en_GB sv_SE sv-SE" USERLAND="GNU" VIDEO_CARDS="r
adeon fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRES
S_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-10 21:17:21 UTC
Reopen...
Comment 6 Peter Karlsson 2008-02-10 21:27:07 UTC
It seems it doesn't like a particular file in /usr/share/applications. I've edited realplay.desktop to only contain a (shell) comment so that it won't appear in my menu. When I delete this file update-desktop-database doesn't segfault anymore. However I do consider this a bug since an application shouldn't crash when fed wrong input...

Whatever you decide to do about this I'm grateful for your efforts. Thanks!

Peter K
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-02-10 21:55:58 UTC
although it was a known problem, noone fixed it yet. Thanks for the links, the patch is now in tree and hopefully fixes your problem. Please reopen if it's not the case.