Thunar exits with bus error every time when I attempt to open folders containing files (for almost every folder) on sun ultra 5 sparc sysem with Xubuntu Dapper distribution installed, xfce 4.4beta1 and Thunar revision 0.3.1svn-r21789 Steps to Reproduce: 1. open Thunar in terminal. Double click (default settings) on filesystem icon then Double click on /bin folder. 2. open Thunar in terminal. Double click on filesystem icon Double click on /usr folder Result: 1. Thunar exits with "bus error" coment in terminal. 2. Thunar stays open. It initially looks like Thunar does not have a problem when opening folders that only contain other folders. but will also display files of type "socket" in /tmp folder. Accessing remotely on OS X using ssh -Y I get the following message in the terminal: "Thunar: Failed to connect to the D-BUS session bus: Unable to determine the address of the message bus"
Please run Thunar in gdb and post the backtrace of the crash here.
(In reply to comment #1) > Please run Thunar in gdb and post the backtrace of the crash here. > The backtrace of the crash (when opening /bin file, point 1. of previous post) is #0 0xf7f556e4 in thunar_vfs_path_list_free () from /usr/lib/libthunar-vfs-1.so.2 #1 0xf7f56418 in thunar_vfs_path_to_uri () from /usr/lib/libthunar-vfs-1.so.2 #2 0xf7f582ac in thunar_vfs_thumb_factory_lookup_thumbnail () from /usr/lib/libthunar-vfs-1.so.2 #3 0x00037848 in ?? () #4 0x00037848 in ?? () Previous frame identical to this frame (corrupt stack?) There is also a message before executing the back trace about the bus error: Program received signal SIGBUS, Bus error. [Switching to Thread -139742192 (LWP 12171)] 0xf7f556e4 in thunar_vfs_path_list_free () from /usr/lib/libthunar-vfs-1.so.2 I have not tried to re-compile Thunar with -g flag. Is this flag critical for the backtrace? I'm afraid I'm not very experienced with gdb.
Yes, please rebuild with --enable-debug=full (configure flag).
(In reply to comment #3) Here are the results from the following rebuild with --enable-debug=full (configure flag). Build 2006-07-04 from source archives: 1 http://gb.archive.ubuntu.com dapper/main thunar 0.3.0+r21789-0ubuntu2 (dsc) [1035B] 2 http://gb.archive.ubuntu.com dapper/main thunar 0.3.0+r21789-0ubuntu2 (tar) [2324kB] 3 http://gb.archive.ubuntu.com dapper/main thunar 0.3.0+r21789-0ubuntu2 (diff) [4434B] Build Configuration: * D-BUS support: yes * File System Monitor: none * GNOME Thumbnailers: no * Startup Notification: yes * Volume Manager: none Additional Plugins: * Advanced Properties: yes * Simple Builting Renamers: yes * User Customizable Actions: yes Running Thunar through gdb debugger get the following: Starting program: /opt/xfce/bin/thunar [Thread debugging using libthread_db enabled] [New Thread -139841696 (LWP 970)] [New Thread -161203280 (LWP 973)] Thunar: Failed to connect to the D-BUS session bus: Unable to determine the address of the message bus [Thread -161203280 (LWP 973) exited] thunar-apr-Message: Initializing ThunarApr extension thunar-sbr-Message: Initializing ThunarSbr extension thunar-uca-Message: Initializing ThunarUca extension thunar-sbr-Message: Shutting down ThunarSbr extension thunar-apr-Message: Shutting down ThunarApr extension [New Thread -161203280 (LWP 974)] [New Thread -170378320 (LWP 975)] [Thread -170378320 (LWP 975) exited] Program received signal SIGBUS, Bus error. [Switching to Thread -139841696 (LWP 970)] thunar_vfs_path_escape_uri (path=0x30f520, buffer=0xffe87a7f "p??\226x") at thunar-vfs-path.c:130 130 ((guint32 *) buffer)[0] = ((const guint32 *) s)[0]; (gdb) bt #0 thunar_vfs_path_escape_uri (path=0x30f520, buffer=0xffe87a7f "p??\226x") at thunar-vfs-path.c:130 #1 0xf7f49024 in IA__thunar_vfs_path_to_uri (path=0x30f520, buffer=0xffe87a7f "p??\226x", bufsize=12289, error=0x0) at thunar-vfs-path.c:792 #2 0xf7f4b75c in IA__thunar_vfs_thumb_factory_lookup_thumbnail ( factory=0x268678, info=0x3921f0) at thunar-vfs-thumb.c:422 #3 0x0003beac in thunar_icon_factory_load_file_icon (factory=0x106088, file=0x3925b0, icon_state=THUNAR_FILE_ICON_STATE_DEFAULT, icon_size=24) at thunar-icon-factory.c:895 #4 0x0003c6a0 in thunar_icon_renderer_render (renderer=0x10b0f8, window=0x10d468, widget=0x1346a8, background_area=0xffe8acb8, cell_area=0xffe8acc8, expose_area=0xffe8acd8, flags=GTK_CELL_RENDERER_SORTED) at thunar-icon-renderer.c:384 #5 0xf7bf8304 in gtk_cell_renderer_render () from /usr/lib/libgtk-x11-2.0.so.0 #6 0xf7dae2b4 in _gtk_tree_view_column_get_cell_at_pos () from /usr/lib/libgtk-x11-2.0.so.0 #7 0xf7daeac8 in _gtk_tree_view_column_cell_render () from /usr/lib/libgtk-x11-2.0.so.0 #8 0xf7d9c18c in _gtk_tree_view_queue_draw_node () from /usr/lib/libgtk-x11-2.0.so.0 #9 0xf7cbe5a8 in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0 #10 0xf77c5794 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0 #11 0xf77c5f20 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #12 0xf77d85c8 in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0 #13 0xf77d96e0 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #14 0xf77d9dc8 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #15 0xf7dbcb38 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0 #16 0xf7cbced0 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #17 0xf7ad8a98 in gdk_window_clear_area_e () from /usr/lib/libgdk-x11-2.0.so.0 #18 0xf7ad8b8c in gdk_window_process_all_updates () from /usr/lib/libgdk-x11-2.0.so.0 #19 0xf7c2a32c in gtk_container_check_resize () from /usr/lib/libgtk-x11-2.0.so.0 #20 0xf753d1b4 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0 #21 0xf753d1b4 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0 Previous frame identical to this frame (corrupt stack?) Thanks for your patience on this I'm learning as I go.
Created attachment 643 Suggested fix Please try this patch.
(In reply to comment #5) Thanks thats great the patch works. Build 0.3.1svn-r22258 with patch stops Thunar quiting unexpectedly. Everything seems to be working fine so far.
Committed with revision 22294. 2006-07-08 Benedikt Meurer <benny@xfce.org> * thunar-vfs/thunar-vfs-path.c(thunar_vfs_path_escape_uri): Fix alignment issues for Linux/sparc. Bug #1983.