<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>209582</bug_id>
          
          <creation_ts>2008-02-10 19:52 0000</creation_ts>
          <short_desc>dev-util/desktop-file-utils-0.14 - update-desktop-database segfaults</short_desc>
          <delta_ts>2008-02-10 21:55:58 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>peterk2@coolmail.se</reporter>
          <assigned_to>freedesktop-bugs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>peterk2@coolmail.se</who>
            <bug_when>2008-02-10 19:52:15 0000</bug_when>
            <thetext>update-desktop-database segfaults when run. I&apos;m not sure what this app/command does or if it&apos;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 &apos;/usr/local/share/applications&apos;:
        Error opening directory &apos;/usr/local/share/applications&apos;: No such file or directory
File &apos;/usr/share/applications/xfce4-autostart-editor.desktop&apos; lacks MimeType key
File &apos;/usr/share/applications/amdcccle-ati-drivers.desktop&apos; lacks MimeType key

(update-desktop-database:10610): GLib-CRITICAL **: g_key_file_get_string_list: assertion `group_name != NULL&apos; 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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-02-10 19:58:54 0000</bug_when>
            <thetext>Reopen with a backtrace and emerge --info output; thanks.

http://www.gentoo.org/proj/en/qa/backtraces.xml</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2008-02-10 20:00:37 0000</bug_when>
            <thetext>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&amp;r2=1.9&amp;view=patch

Discussion,

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460532</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peterk2@coolmail.se</who>
            <bug_when>2008-02-10 21:10:45 0000</bug_when>
            <thetext>Created an attachment (id=143164)
backtrace log of update-desktop-database

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peterk2@coolmail.se</who>
            <bug_when>2008-02-10 21:11:41 0000</bug_when>
            <thetext>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=&quot;x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon64 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /etc/X11/app-defaults/ /usr/share/applications/&quot;
CONFIG_PROTECT_MASK=&quot;/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&quot;
CXXFLAGS=&quot;-O2 -march=athlon64 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;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&quot;
LANG=&quot;en_US.utf8&quot;
LINGUAS=&quot;en sv en_GB sv_SE sv-SE&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;emu10k1&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;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&quot; CAMERAS=&quot;canon
&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev keyboard mouse magellan&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz63
3 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en sv en_GB sv_SE sv-SE&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;r
adeon fglrx vesa&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRES
S_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-02-10 21:17:21 0000</bug_when>
            <thetext>Reopen...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peterk2@coolmail.se</who>
            <bug_when>2008-02-10 21:27:07 0000</bug_when>
            <thetext>It seems it doesn&apos;t like a particular file in /usr/share/applications. I&apos;ve edited realplay.desktop to only contain a (shell) comment so that it won&apos;t appear in my menu. When I delete this file update-desktop-database doesn&apos;t segfault anymore. However I do consider this a bug since an application shouldn&apos;t crash when fed wrong input...

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

Peter K</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2008-02-10 21:55:58 0000</bug_when>
            <thetext>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&apos;s not the case.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>143164</attachid>
            <date>2008-02-10 21:10 0000</date>
            <desc>backtrace log of update-desktop-database</desc>
            <filename>backtrace.log</filename>
            <type>text/plain</type>
            <data encoding="base64">IzAgIDB4MDgwNDk2MTEgaW4gcHJvY2Vzc19kZXNrdG9wX2ZpbGUgKAogICAgZGVza3RvcF9maWxl
PTB4ODA0ZTdiOCAiL3Vzci9zaGFyZS9hcHBsaWNhdGlvbnMvcmVhbHBsYXkuZGVza3RvcCIsIAog
ICAgbmFtZT0weDgwNTBmZTggInJlYWxwbGF5LmRlc2t0b3AiLCBlcnJvcj0weGJmZTM4ZWQwKQog
ICAgYXQgdXBkYXRlLWRlc2t0b3AtZGF0YWJhc2UuYzoyMDMKIzEgIDB4MDgwNDk3OTkgaW4gcHJv
Y2Vzc19kZXNrdG9wX2ZpbGVzICgKICAgIGRlc2t0b3BfZGlyPTB4ODA0ZTEwMCAiL3Vzci9zaGFy
ZS9hcHBsaWNhdGlvbnMiLCBwcmVmaXg9MHg4MDRhM2Y1ICIiLCAKICAgIGVycm9yPTB4YmZlMzhm
MTQpIGF0IHVwZGF0ZS1kZXNrdG9wLWRhdGFiYXNlLmM6MjczCiMyICAweDA4MDQ5Yzg1IGluIHVw
ZGF0ZV9kYXRhYmFzZSAoCiAgICBkZXNrdG9wX2Rpcj0weDgwNGUxMDAgIi91c3Ivc2hhcmUvYXBw
bGljYXRpb25zIiwgZXJyb3I9MHhiZmUzOGZiYykKICAgIGF0IHVwZGF0ZS1kZXNrdG9wLWRhdGFi
YXNlLmM6NDE1CiMzICAweDA4MDRhMDAwIGluIG1haW4gKGFyZ2M9MSwgYXJndj0weGJmZTM5MDc0
KSBhdCB1cGRhdGUtZGVza3RvcC1kYXRhYmFzZS5jOjUxOAo=
</data>        

          </attachment>
    </bug>

</bugzilla>