Bug 209582 - dev-util/desktop-file-utils-0.14 - update-desktop-database segfaults
|
Bug#:
209582
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: freedesktop-bugs@gentoo.org
|
Reported By: peterk2@coolmail.se
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: dev-util/desktop-file-utils-0.14 - update-desktop-database segfaults
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2008-02-10 19:52 0000
|
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
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
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
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.