! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Crash in thunar_file_get_for_info()
Status:
CLOSED: FIXED
Severity:
blocker

Comments

Description Benedikt Meurer editbugs 2006-01-28 11:49:33 CET
--- 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
Comment 1 Benedikt Meurer editbugs 2006-01-28 12:17:35 CET
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?
Comment 2 botsie editbugs 2006-01-31 11:51:30 CET
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'.
Comment 3 Benedikt Meurer editbugs 2006-01-31 12:16:46 CET
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.

Bug #1390

Reported by:
Benedikt Meurer
Reported on: 2006-01-28
Last modified on: 2009-07-17

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Version:
0.2.1svn

Attachments

Additional information