! 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 !
Thunar Crashes Immediately after Start [segmentation fault]
Status:
CLOSED: INVALID
Severity:
critical

Comments

Description Will L G 2006-08-12 18:05:29 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux alpha; en-US; rv:1.8.0.2) Gecko/20060426 Galeon/2.0.1 Firefox/1.5.0.2
Build Identifier: Mozilla/5.0 (X11; U; Linux alpha; en-US; rv:1.8.0.2) Gecko/20060426 Galeon/2.0.1 Firefox/1.5.0.2

Simple: Thunar crashes immediately after start with a segmentation fault error.

Reproducible: Always

Steps to Reproduce:
1.open xterm
2.type thunar <enter>
3.segmentation fault

Actual Results:  
'segmentation fault'

Expected Results:  
It would open with beautiful icons all over the place begging to be clicked...

AlphaPC 164SX
Redhat 7.2 [Alpha]
Kernel-2.6.16.1
GCC-4.0.1/4.1.0
Binutils-2.17
Gnome-2.8.3
GTK-2.6.10
GLIB-2.6.6

GNU DDD 3.3.11 (alphapca56-alpha-linux-gnu), by Dorothea L
Comment 1 Benedikt Meurer editbugs 2006-08-12 18:31:34 CEST
Uhm, crash in g_type_fundamental()... Can you build with --enable-debug=full and redo the backtrace?
Comment 2 Will L G 2006-08-12 18:47:10 CEST
Sure can do... just a sec
Comment 3 Will L G 2006-08-12 19:12:59 CEST
Got some bad news.. --enable-debug=full segfaults gdb, I'll try recompiling and toning down the debugging code from 'full' to 'yes':

GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alphapca56-alpha-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/thunar 
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 16595)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 16595)]
0x0000020000813b94 in g_type_fundamental () from /usr/lib/libgobject-2.0.so.0
(gdb) list
Segmentation fault
Comment 4 Will L G 2006-08-12 19:42:49 CEST
GNU DDD 3.3.11 (alphapca56-alpha-linux-gnu), by Dorothea L
Comment 5 Benedikt Meurer editbugs 2006-08-12 19:45:50 CEST
Well, that's still w/o debug information. Set CFLAGS to -O0 -g3 before running autogen.sh/configure.
Comment 6 Will L G 2006-08-12 23:18:49 CEST
I should have caught that but I wasn't thinking... Here's a MUCHO better debug:

GNU DDD 3.3.11 (alphapca56-alpha-linux-gnu), by Dorothea L
Comment 7 Benedikt Meurer editbugs 2006-08-12 23:20:52 CEST
Do you have a thunarrc in ~/.config/Thunar/?
Comment 8 Will L G 2006-08-13 00:20:45 CEST
Yep:

[willi@jericho willi]$ ls .config/Thunar/
accels.scm
Comment 9 Will L G 2006-08-13 00:24:00 CEST
Whoops... when I deleted .config/Thunar and then fired it up again, it just simply created an empty dir and nothing else... the file 'accels.scm' must have been from a previous SVN release.
Comment 10 Benedikt Meurer editbugs 2006-08-14 20:02:30 CEST
Created attachment 731 
Debug patch

Apply this patch (in thunar/), recompile and run. Should print a debug message, which you should post here.
Comment 11 Will L G 2006-08-14 21:44:13 CEST
recompiled with GCC-4.1.1 and additional CFLAG of -ggdb after applying your patch:

GNU DDD 3.3.11 (alphapca56-alpha-linux-gnu), by Dorothea Lütkehaus and Andreas Zeller.
Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
Copyright © 1999-2001 Universität Passau, Germany.
Copyright © 2001 Universität des Saarlandes, Germany.
Copyright © 2001-2004 Free Software Foundation, Inc.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 16244)]

Program received signal SIGSEGV, Segmentation fault.
0x00000200008560ac in g_type_name () from /usr/lib/libgobject-2.0.so.0
(gdb) bt
#0  0x00000200008560ac in g_type_name () from /usr/lib/libgobject-2.0.so.0
#1  0x00000001200babb0 in thunar_window_action_location_bar_changed (action=0x1201928c0, current=Variable "current" is not available.
) at thunar-window.c:1333
#2  0x00000001200bc878 in thunar_window_init (window=0x120176270) at thunar-window.c:703
#3  0x00000200008622a4 in g_type_create_instance () from /usr/lib/libgobject-2.0.so.0
#4  0x0000020000839b7c in g_value_dup_object () from /usr/lib/libgobject-2.0.so.0
#5  0x000002000083a3b8 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#6  0x000002000083b14c in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#7  0x000002000083b314 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#8  0x000000012001c8ec in thunar_application_open_window (application=0x12015e9a0, directory=0x1201633b0, screen=0x120130110) at thunar-application.c:462
#9  0x000000012004444c in thunar_file_launch (file=Variable "file" is not available.
) at thunar-file.c:885
#10 0x000000012001be2c in thunar_application_process_filenames (application=Variable "application" is not available.
) at thunar-application.c:855
#11 0x0000000120017d0c in main (argc=1, argv=0x11fbd1708) at main.c:212
(gdb) up
#1  0x00000001200babb0 in thunar_window_action_location_bar_changed (action=0x1201928c0, current=Variable "current" is not available.
) at thunar-window.c:1333
/usr2/www/pub/alpha-RH7/desktop/xfce-4/xfce-4.4/source/Thunar-0.3.3svn-r22715/thunar/thunar-window.c:1333:56284:beg:0x1200babb0
(gdb) list
1328      type = gtk_radio_action_get_current_value (action);
1329
1330      /* activate the new location bar */
1331      if (G_LIKELY (type != G_TYPE_NONE))
1332        {
1333          g_message ("TYPE='%s'", g_type_name (type));
1334          /* initialize the new location bar widget */
1335          window->location_bar = g_object_new (type, "ui-manager", window->ui_manager, NULL);
1336          exo_binding_new (G_OBJECT (window), "current-directory", G_OBJECT (window->location_bar), "current-directory");
1337          g_signal_connect_swapped (G_OBJECT (window->location_bar), "change-directory", G_CALLBACK (thunar_window_set_current_directory), window);
(gdb) down
#0  0x00000200008560ac in g_type_name () from /usr/lib/libgobject-2.0.so.0
(gdb) list
1338
1339          /* connect the location bar widget to the view (if any) */
1340          if (G_LIKELY (window->view != NULL))
1341            exo_binding_new (G_OBJECT (window->view), "selected-files", G_OBJECT (window->location_bar), "selected-files");
1342
1343          /* check if the location bar should be placed into a toolbar */
1344          if (!thunar_location_bar_is_standalone (THUNAR_LOCATION_BAR (window->location_bar)))
1345            {
1346              /* be sure to drop any previous toolbar */
1347              toolbar = gtk_bin_get_child (GTK_BIN (window->location_toolbar_box));
(gdb) down
Bottom (i.e., innermost) frame selected; you cannot go down.
(gdb)
Comment 12 Benedikt Meurer editbugs 2006-08-28 18:05:11 CEST
Please try again with revision 22920 or later.
Comment 13 Benedikt Meurer editbugs 2006-09-03 16:42:02 CEST
Moving to 0.5.0rc2.
Comment 14 Benedikt Meurer editbugs 2006-09-08 20:09:11 CEST
Any news?
Comment 15 Benedikt Meurer editbugs 2006-09-14 13:29:13 CEST
Resolving to INVALID due to missing infos.

Bug #2155

Reported by:
Will L G
Reported on: 2006-08-12
Last modified on: 2009-07-17

People

Assignee:
Jannis Pohlmann
CC List:
0 users

Version

Version:
0.3.3svn

Attachments

Debug patch (584 bytes, patch)
2006-08-14 20:02 CEST , Benedikt Meurer
no flags

Additional information