Thunar (svn r21111) segfaults when I try to enter /usr/share/applications. Perhaps this has something to do with parsing .desktop files? But changing into ~/Desktop, which also contains some .desktop entries, works. Backtrace attached. FC4, gtk+ 2.6.10, glib 2.6.6 Best, Nick. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1211216976 (LWP 1947)] 0x0097e167 in g_atomic_int_exchange_and_add () from /usr/lib/libglib-2.0.so.0 (gdb) where #0 0x0097e167 in g_atomic_int_exchange_and_add () from /usr/lib/libglib-2.0.so.0 #1 0x00127328 in thunar_vfs_mime_info_unref () from /usr/lib/libthunar-vfs-1.so.2 #2 0x00120695 in thunar_vfs_info_matches () from /usr/lib/libthunar-vfs-1.so.2 #3 0x00122121 in thunar_vfs_job_cancel () from /usr/lib/libthunar-vfs-1.so.2 #4 0x0012230a in thunar_vfs_job_cancel () from /usr/lib/libthunar-vfs-1.so.2 #5 0x0012121b in thunar_vfs_job_get_type () from /usr/lib/libthunar-vfs-1.so.2 #6 0x009b1cd2 in g_thread_pool_free () from /usr/lib/libglib-2.0.so.0 #7 0x009afffa in g_static_private_free () from /usr/lib/libglib-2.0.so.0 #8 0x00740bd4 in start_thread () from /lib/libpthread.so.0 #9 0x002134fe in clone () from /lib/libc.so.6
Hm, the stack trace looks corrupted, as thunar_vfs_info_matches() does not call thunar_vfs_mime_info_unref(). Can you try building thunar with --enable-debug=full and run it directly from gdb?
Here comes... (gdb) run Starting program: /usr/bin/Thunar Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0x4c8000 [Thread debugging using libthread_db enabled] [New Thread -1209067840 (LWP 3148)] [New Thread -1211774032 (LWP 3151)] [New Thread -1222263888 (LWP 3152)] [New Thread -1232753744 (LWP 3153)] [New Thread -1243243600 (LWP 3154)] [New Thread -1253733456 (LWP 3155)] [New Thread -1264227408 (LWP 3156)] thunar-uca-Message: Initializing ThunarUca extension [New Thread -1274717264 (LWP 3157)] [Thread -1232753744 (LWP 3153) exited] [Thread -1253733456 (LWP 3155) exited] thunar-apr-Message: Initializing ThunarApr extension thunar-sbr-Message: Initializing ThunarSbr extension thunar-sbr-Message: Shutting down ThunarSbr extension thunar-apr-Message: Shutting down ThunarApr extension [Thread -1274717264 (LWP 3157) exited] [Thread -1264227408 (LWP 3156) exited] [Thread -1211774032 (LWP 3151) exited] [Thread -1222263888 (LWP 3152) exited] [Thread -1243243600 (LWP 3154) exited] [New Thread -1243243600 (LWP 3161)] [Thread -1243243600 (LWP 3161) exited] [New Thread -1243243600 (LWP 3162)] [New Thread -1211774032 (LWP 3163)] [Thread -1211774032 (LWP 3163) exited] [Thread -1243243600 (LWP 3162) exited] [New Thread -1243243600 (LWP 3164)] [New Thread -1211774032 (LWP 3165)] thunar-vfs-CRITICAL **: thunar_vfs_mime_database_get_info_for_name: assertion `strchr (name, '/') == NULL' failed aborting... Program received signal SIGABRT, Aborted. [Switching to Thread -1243243600 (LWP 3164)] 0x004c8402 in __kernel_vsyscall () (gdb) where #0 0x004c8402 in __kernel_vsyscall () #1 0x0050ef90 in raise () from /lib/libc.so.6 #2 0x00510678 in abort () from /lib/libc.so.6 #3 0x0099d3b1 in g_logv () from /usr/lib/libglib-2.0.so.0 #4 0x0099d3e5 in g_log () from /usr/lib/libglib-2.0.so.0 #5 0x0099d521 in g_return_if_fail_warning () from /usr/lib/libglib-2.0.so.0 #6 0x00a930cb in IA__thunar_vfs_mime_database_get_info_for_name ( database=0x95d7930, name=0x982bb7c "Ghostview PostScript/PDF Viewer") at thunar-vfs-mime-database.c:1040 #7 0x00a8d86c in _thunar_vfs_info_new_internal (path=0x9801a98, absolute_path=0xb5e58320 "/usr/share/applications/fedora-gv.desktop", error=0x0) at thunar-vfs-info.c:956 #8 0x00a8f361 in thunar_vfs_listdir_job_task (task=dwarf2_read_address: Corrupted DWARF expression. ) at thunar-vfs-listdir-job.c:324 #9 0x00a8f54a in thunar_vfs_listdir_job_execute (job=0x9830a00) at thunar-vfs-listdir-job.c:263 #10 0x00a8e45b in thunar_vfs_job_execute (data=0x9830a00, user_data=0x0) at thunar-vfs-job.c:215 #11 0x009b1cd2 in g_thread_pool_free () from /usr/lib/libglib-2.0.so.0 #12 0x009afffa in g_static_private_free () from /usr/lib/libglib-2.0.so.0 #13 0x00740bd4 in start_thread () from /lib/libpthread.so.0 #14 0x005b14fe in clone () from /lib/libc.so.6
Benedikt, it seems that Thunar had problems parsing two .desktop files (fedora-gv.desktop, system-config-packages.desktop) which ship with my FC4 installation. I attached the content of those files below. After removing them from the folder, Thunar can enter it. HTH, Nick. fedora-gv.desktop: [Desktop Entry] Name=Ghostview PostScript/PDF Viewer GenericName=PostScript/PDF Viewer Comment="View PostScript and PDF files" Type=Application Icon=postscript-viewer.png MimeType=application/postscript;application/pdf; StartupWMClass=GV Exec=gv Encoding=UTF-8 X-Desktop-File-Install-Version=0.10 Categories=X-Fedora;Graphics;Applications; system-config-packages.desktop: [Desktop Entry] Name=Add/Remove Applications Name[ar]=إضافة/إزالة التّطبيقات Name[bg]=Добавяне/Премахване на приложения Name[bn]=অ্যাপ্লিকেশন যোগ করুন/সরিয়ে ফেলুন Name[ca]=Afegiu o esborreu aplicacions Name[cs]=Přidat/odstranit aplikace Name[cy]=Ychwanegu/Gwaredu Cymhwysiadau Name[da]=Tilføj eller fjern programmer Name[de]=Hinzuf
I think I tracked it down, it's the slash ('/') in the field "Name=" of the .desktop files. (I don't know whether Thunar parses the field "GenericName=" too, but there the slash had no effect). After removing the slash, Thunar loads the directory. Best, Nick.
Created attachment 511 Suggested fix Please try this patch.
Looks good, no more crash. Thanks Benedikt. Best, Nick.
Committed with revision 21125. 2006-04-20 Benedikt Meurer <benny@xfce.org> * thunar-vfs/thunar-vfs-info.c(_thunar_vfs_info_new_internal): Be sure to check names extracted from the .desktop file first before passing them to thunar_vfs_mime_database_get_info_for_name(). Bug #1696.