[Thunar-dev] Experimental Thunar Trash tarball
Björn Martensen
bjoern.martensen at gmail.com
Thu Jul 27 00:43:27 CEST 2006
Brian J. Tarricone wrote:
> On 7/26/2006 3:10 PM, Benedikt Meurer wrote:
>>> Björn Martensen wrote:
>>>>>> However, the other two crashes I reported that occur in the treeview
>>>>>> sidepane are still present.
>>>>> If the backtrace shows g_slice_alloc() or g_slice_alloc0(), try set the
>>>>> environment variable G_SLICE to always-malloc and enable malloc()
>>>>> debugging (man malloc should provide the required info for your libc
>>>>> implementation), and check if you are still able to reproduce the crash.
>>>> That helped. No crashes anymore.
>>>> I set G_SLICE=always-malloc and MALLOC_CHECK_=1 and after exiting thunar
>>>> and doing the stuff that caused crashes before I now get
>>>>
>>>> *** glibc detected *** thunar: free(): invalid pointer: 0x08346b28 ***
>>>> *** glibc detected *** thunar: free(): invalid pointer: 0x08348fd0 ***
>>>> *** glibc detected *** thunar: free(): invalid pointer: 0x0834a568 ***
>>> Ah, good, now you just need to make free() crash so we find out where
>>> the invalid pointers come from.
>
> Björn,
>
> You can set MALLOC_CHECK_=2 instead which will cause free() to abort()
> on invalid pointers, and run thunar through gdb:
>
> $ gdb Thunar
> [gdb stuff...]
> (gdb) run
> [... do something to make it crash ...]
> (gdb) bt
> [... get your backtrace ...]
> (gdb) quit
That is what i was going to do now :>
Here is the bt from collapsing the trash tree:
#0 0xb79c28d7 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
#1 0xb79c2aa5 in g_slice_alloc0 () from /usr/lib/libglib-2.0.so.0
#2 0xb7a9cf1f in g_type_create_instance () from
/usr/lib/libgobject-2.0.so.0
#3 0xb7a841d2 in g_object_constructor () from /usr/lib/libgobject-2.0.so.0
#4 0xb7a826a8 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#5 0xb7a83177 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#6 0xb7a83330 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#7 0xb7bc1aad in gdk_pixmap_new () from /usr/lib/libgdk-x11-2.0.so.0
#8 0xb7ba209e in gdk_window_begin_paint_region () from
/usr/lib/libgdk-x11-2.0.so.0
#9 0xb7d327b0 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#10 0xb7ba2490 in gdk_window_process_updates_internal () from
/usr/lib/libgdk-x11-2.0.so.0
#11 0xb7ba26cf in gdk_window_process_all_updates () from
/usr/lib/libgdk-x11-2.0.so.0
#12 0xb7ca4ad7 in gtk_container_idle_sizer () from
/usr/lib/libgtk-x11-2.0.so.0
#13 0xb79a9a61 in g_idle_dispatch () from /usr/lib/libglib-2.0.so.0
#14 0xb79ab7e1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#15 0xb79ae83f in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#16 0xb79aebf7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#17 0xb7d32a31 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x0805e970 in main (argc=137463504, argv=0x1) at main.c:239
and this is the bt from the crash related to expanding Locations:
#0 0xb79008d7 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
#1 0xb7900aa5 in g_slice_alloc0 () from /usr/lib/libglib-2.0.so.0
#2 0xb79daf1f in g_type_create_instance () from
/usr/lib/libgobject-2.0.so.0
#3 0xb79c21d2 in g_object_constructor () from /usr/lib/libgobject-2.0.so.0
#4 0xb79c06a8 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#5 0xb79c1177 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#6 0xb79c1330 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#7 0x08074d53 in thunar_file_get_for_info (info=0xb79ea6e8) at
thunar-file.c:668
#8 0x0807720a in thunar_folder_infos_ready (job=0x8373180,
infos=0x83843b0, folder=0x82a18f0)
at thunar-folder.c:331
#9 0xb7ed00ca in _thunar_vfs_marshal_BOOLEAN__POINTER () from
/opt/xfce4/lib/libthunar-vfs-1.so.2
#10 0xb79bb11b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#11 0xb79cb439 in signal_emit_unlocked_R () from
/usr/lib/libgobject-2.0.so.0
#12 0xb79cc6d8 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#13 0xb7ed93e5 in thunar_vfs_job_source_dispatch () from
/opt/xfce4/lib/libthunar-vfs-1.so.2
#14 0xb78e97e1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#15 0xb78ec83f in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#16 0xb78ecbf7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#17 0xb7c70a31 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x0805e970 in main (argc=137565224, argv=0x1) at main.c:239
btw, I still have to add
#define __USE_XOPEN
before #include <time.h>
to be able to compile.
Björn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20060727/8a38850a/attachment.pgp>
More information about the Thunar-dev
mailing list