--- Reported by botsie on thunar-dev --- Latest svn head: Thunar segfaults when entering a directory that contains broken symlinks. Here's the backtrace: #0 0x0806269f in thunar_file_get_for_info (info=0x1) at thunar-file.c:651 #1 0x0806387d in thunar_folder_infos_ready (job=0x0, infos=0x9e59750, folder=0x9f71ce0) at thunar-folder.c:335 #2 0x00b490ef in g_cclosure_marshal_VOID__POINTER () from /usr/lib/libgobject-2.0.so.0 #3 0x00b3d285 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #4 0x00b4b78b in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0 #5 0x00b4cee0 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #6 0x00fa445b in thunar_vfs_job_emit_idle (user_data=0xb7cc31f8) at thunar-vfs-job.c:235 #7 0x009ab650 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0 #8 0x009a93ee in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #9 0x009ac3f6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0 #10 0x009ac6e3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #11 0x00fa45bb in thunar_vfs_job_launch_idle (user_data=0x9eddd60) at thunar-vfs-job.c:267 #12 0x009ab650 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0 #13 0x009a93ee in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #14 0x009ac3f6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0 #15 0x009ac6e3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #16 0x07aa21b5 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #17 0x08058126 in main (argc=1, argv=0xbfa8cef4) at main.c:97
I cannot reproduce the problem here, and the backtrace looks corrupted, since job=0x0 would have been caught by the assertion in thunar_folder_infos_ready(). Can you try to compile with --enable-debug=full and/or run in gdb?
Did some additional checking. The bug is reproducable. Steps that work for me: $ mkdir test $ cd test $ touch foo $ cd .. $ chmod -x test Open thunar, browse to 'test'. Thunar crashes when you attempt to enter 'test'.
Fixed with revision 19687. 2006-01-31 Benedikt Meurer <benny@xfce.org> * thunar-vfs/thunar-vfs-listdir-job.c: Make sure the list head always points to a valid ThunarVfsInfo list, even if an error occurred while stat()'ing files in a given directory. Bug #1390.