After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 554970 - segfault when update-desktop-database is not available on the system
segfault when update-desktop-database is not available on the system
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.18.x
Other Linux
: High critical
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-10-04 08:14 UTC by Pascal Terjan
Modified: 2008-10-05 00:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Patch fixing the segfault (393 bytes, patch)
2008-10-04 09:18 UTC, Pascal Terjan
committed Details | Review

Description Pascal Terjan 2008-10-04 08:14:54 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'
Comment 1 Pascal Terjan 2008-10-04 09:00:01 UTC
It segfaults because desktop-file-utils is not installed on my build chroot
Comment 2 Pascal Terjan 2008-10-04 09:09:13 UTC
(gdb) bt full
  • #0 run_update_command
    at gdesktopappinfo.c line 1413
  • #1 g_desktop_app_info_ensure_saved
    at gdesktopappinfo.c line 1589
  • #2 g_desktop_app_info_set_as_default_for_type
    at gdesktopappinfo.c line 1361
  • #3 create_app_info
    at desktop-app-info.c line 44
  • #4 test_delete
    at desktop-app-info.c line 62

Comment 3 Pascal Terjan 2008-10-04 09:18:38 UTC
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
Comment 4 Matthias Clasen 2008-10-04 20:33:07 UTC
Good catch. This should be committed to both trunk and glib-2-18
Comment 5 Pascal Terjan 2008-10-05 00:33:49 UTC
commited