GNOME Bugzilla – Bug 554970
segfault when update-desktop-database is not available on the system
Last modified: 2008-10-05 00:33:49 UTC
System is Mandriva Cooker, x86_64 TEST: desktop-app-info... (pid=21708) /desktop-app-info/delete: FAIL GTester: last random seed: R02Sb4d43fcbaa1832d3e393bf14bda0e5af /bin/sh: line 1: 21562 Terminated ../../glib/gtester --verbose memory-input-stream memory-output-stream g-file g-file-info data-input-stream data-output-stream live-g-file unix-streams desktop-app-info make[5]: *** [test] Error 143 make[5]: Leaving directory `/home/build/checkout/gnome2/glib/gio/tests'
It segfaults because desktop-file-utils is not installed on my build chroot
(gdb) bt full
+ Trace 207742
Created attachment 119907 [details] [review] Patch fixing the segfault This patch fixes the segfault and make check will fail more nicely : TEST: desktop-app-info... (pid=6841) /desktop-app-info/delete: GLib-GIO-WARNING **: Failed to execute child process "update-desktop-database" (No such file or directory) aborting... FAIL GTester: last random seed: R02Sb44a89714ca4678bf905b30ee1989971 /bin/sh: line 1: 6695 Terminated ../../glib/gtester --verbose memory-input-stream memory-output-stream g-file g-file-info data-input-stream data-output-stream live-g-file unix-streams desktop-app-info
Good catch. This should be committed to both trunk and glib-2-18
commited