After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 306143 - Probably corrupted data type make nautilus freeze or crash
Probably corrupted data type make nautilus freeze or crash
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: MIME data
2.10.x
Other All
: High critical
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
: 167284 304235 305541 306866 306885 308129 308392 308780 312466 323973 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-06-01 13:01 UTC by oll
Modified: 2005-12-18 17:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
christophe's patch (1.46 KB, patch)
2005-06-21 15:26 UTC, oll
none Details | Review
170947's patch (1.06 KB, patch)
2005-06-21 15:32 UTC, oll
none Details | Review

Description oll 2005-06-01 13:01:39 UTC
Steps to reproduce:
I deleted my .local file but problem remain.




Stack trace:


Other information:
Comment 1 Christian Kellner 2005-06-01 13:05:46 UTC
Hi there. I can't use that bug report for anything without more information.
Please could you specify what you did so that nautilus crashed and also submit a
stack trace? See http://live.gnome.org/GettingTraces for more information. Thanks!
Comment 2 oll 2005-06-01 14:43:24 UTC
Here are more informations :

garnome 2.10.1 is installed on a NFS share in /opt/STools/gnome-2.10
all users have a fedora core 3 slightly modify to make gdm run
/opt/STools/gnome-2.10/bin/gnome-session (without dbus-launch).

All users have the nautilus freezing problem.
It sometimes crahes instead of freezing but no core available since
gnome-session say :

"Multiple segmentation faults occurred; can't display error dialog"

Anyway , I had some backtrace thanks to gcore.
I always have this sort of messages just before it hangs :

*** glibc detected *** corrupted double-linked list: 0xb6321f98 ***

OR

*** glibc detected *** double free or corruption (fasttop): 0xb63148e0 ***

OR

*** glibc detected *** free(): invalid pointer: 0xb630ad60 ***

Next I'll post some backtrace








Comment 3 oll 2005-06-01 14:45:20 UTC


  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __lll_mutex_lock_wait
    from /lib/tls/libc.so.6
  • #2 _L_mutex_lock_39
    from /lib/tls/libc.so.6
  • #3 ??
  • #4 ??
  • #5 ??
  • #6 fixup
    from /lib/ld-linux.so.2
  • #7 fork
    from /lib/tls/libc.so.6
  • #8 fork
    from /lib/tls/libpthread.so.0
  • #9 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #10 <signal handler called>
  • #11 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #12 raise
    from /lib/tls/libc.so.6
  • #13 abort
    from /lib/tls/libc.so.6
  • #14 __libc_message
    from /lib/tls/libc.so.6
  • #15 _int_free
    from /lib/tls/libc.so.6
  • #16 free
    from /lib/tls/libc.so.6
  • #17 _xdg_glob_list_free
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #18 _gnome_vfs_xdg_hash_free
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #19 _gnome_vfs_xdg_shutdown
  • #20 xdg_mime_init
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #21 _gnome_vfs_xdg_get_max_buffer_extents
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #22 _gnome_vfs_get_mime_type_internal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #23 gnome_vfs_get_file_mime_type_internal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #24 get_mime_type
    from /opt/STools/gnome-2.10/lib/gnome-vfs-2.0/modules/libfile.so
  • #25 do_get_file_info
    from /opt/STools/gnome-2.10/lib/gnome-vfs-2.0/modules/libfile.so
  • #26 gnome_vfs_get_file_info_uri_cancellable
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #27 _gnome_vfs_job_execute
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #28 thread_routine
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #29 thread_entry
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #30 g_thread_create_proxy
    from /opt/STools/gnome-2.10/lib/libglib-2.0.so.0
  • #31 start_thread
    from /lib/tls/libpthread.so.0
  • #32 clone
    from /lib/tls/libc.so.6

Comment 4 oll 2005-06-01 14:48:08 UTC
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/nautilus'.

Thread 12 (process 5928)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __lll_mutex_lock_wait
    from /lib/tls/libc.so.6
  • #2 _L_mutex_lock_3220
    from /lib/tls/libc.so.6
  • #3 ??
  • #4 ??
  • #5 ??
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #6 ??
  • #7 ??
  • #8 ??
  • #9 _gnome_vfs_xdg_alias_list_free
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #10 _gnome_vfs_xdg_alias_list_free
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #11 _gnome_vfs_xdg_shutdown
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #12 xdg_mime_init
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #13 _gnome_vfs_xdg_mime_type_equal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #14 gnome_vfs_mime_type_is_equal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #15 gnome_vfs_mime_type_get_equivalence
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #16 nautilus_file_is_mime_type
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #17 is_desktop_file
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #18 nautilus_file_can_rename
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #19 can_rename_file
  • #20 fm_icon_view_can_rename_file
  • #21 real_update_menus
  • #22 fm_icon_view_update_menus
  • #23 fm_directory_view_update_menus
  • #24 update_menus_if_pending
  • #25 fm_directory_view_pop_up_selection_context_menu
  • #26 icon_container_context_click_selection_callback
  • #27 g_cclosure_marshal_VOID__POINTER
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #28 g_closure_invoke
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #29 signal_emit_unlocked_R
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #30 ??
  • #31 ??
  • #32 ??
  • #33 ??
  • #34 ??
  • #35 ??
  • #36 cleanup_line
    from /opt/STools/gnome-2.10/lib/libgtk-x11-2.0.so.0
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2

Comment 5 oll 2005-06-01 15:55:25 UTC
*** glibc detected *** corrupted double-linked list: 0x00242838 ***

 

BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/nautilus'.

Thread 12 (process 6717)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __lll_mutex_lock_wait
    from /lib/tls/libc.so.6
  • #2 _L_mutex_lock_39
    from /lib/tls/libc.so.6
  • #3 ??
  • #4 ??
  • #5 ??
  • #6 ??
  • #7 ??
    from /lib/tls/libc.so.6
  • #8 fork_handler_pool
    from /lib/tls/libc.so.6
  • #9 fork_handler_pool
    from /lib/tls/libc.so.6
  • #10 ??
  • #11 fork
    from /lib/tls/libc.so.6
  • #12 fork
    from /lib/tls/libc.so.6
  • #13 fork
    from /lib/tls/libpthread.so.0
  • #14 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #15 <signal handler called>
  • #16 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #17 raise
    from /lib/tls/libc.so.6
  • #18 abort
    from /lib/tls/libc.so.6
  • #19 __libc_message
    from /lib/tls/libc.so.6
  • #20 malloc_consolidate
    from /lib/tls/libc.so.6
  • #21 _int_free
    from /lib/tls/libc.so.6
  • #22 free
    from /lib/tls/libc.so.6
  • #23 fclose
    from /lib/tls/libc.so.6
  • #24 _gnome_vfs_xdg_glob_read_from_file
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #25 xdg_mime_init_from_directory
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #26 xdg_run_command_on_dirs
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #27 xdg_mime_init
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #28 _gnome_vfs_xdg_mime_type_equal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #29 gnome_vfs_mime_type_is_equal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #30 gnome_vfs_mime_type_get_equivalence
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #31 nautilus_file_is_mime_type
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #32 is_desktop_file
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #33 nautilus_file_can_rename
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #34 can_rename_file
  • #35 fm_icon_view_can_rename_file
  • #36 real_update_menus
  • #37 fm_icon_view_update_menus
  • #38 fm_directory_view_update_menus
  • #39 update_menus_if_pending
  • #40 fm_directory_view_pop_up_selection_context_menu
  • #41 icon_container_context_click_selection_callback
  • #42 g_cclosure_marshal_VOID__POINTER
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #43 g_closure_invoke
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #44 signal_emit_unlocked_R
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #45 ??
  • #46 ??
  • #47 ??
  • #48 ??
  • #49 ??
  • #50 ??
  • #51 cleanup_line
    from /opt/STools/gnome-2.10/lib/libgtk-x11-2.0.so.0
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2

Comment 6 oll 2005-06-01 16:04:54 UTC
Finishing strace (just before hang)





read(3, "\4\3j\r@\254\263\0@\0\0\0v\2`\2\0\0\0\0O\3\330\2$\0029"..., 64) = 64
gettimeofday({1117641594, 66938}, NULL) = 0
futex(0x81962ac, FUTEX_WAKE, 1)         = 1
) = 0
stat64("/opt/STools/gnome-2.10/share/mime-info/palm.keys", futex(0x8196288,
FUTEX_WAKE, 1)         = 0
lstat64("/opt/STools/gnome-2.10/share/mime-info/palm.keys",
{st_mode=S_IFREG|0644, st_size=388, ...}) = 0
select(17, [16], NULL, NULL, {0, 0}{st_mode=S_IFREG|0644, st_size=388, ...}) =
0) = 0 (Timeout)
open("/opt/STools/gnome-2.10/share/mime-info/palm.keys",
O_RDONLY|O_LARGEFILEwrite(16, ":\0\1\0\6\1\1\0000\0/opt/STools/gnome-2.10"...,
58) = 58
gettimeofday({1117641594, 68142}, NULL) = 0
gettimeofday({1117641594, 68209}, NULL) = 0
lstat64("/opt/STools/gnome-2.10/share", ) = 26
{st_mode=S_IFDIR|S_ISUID|S_ISGID|0755, st_size=3072, ...}) = 0
gettimeofday(stat64("/home/olelain", {1117641594, 68801}, NULL) = 0
{st_mode=S_IFDIR|0755, st_size=7168, ...}) = 0
stat64("/home/olelain/.local/share//mime/globs", gettimeofday({1117641594,
68996}, NULL) = 0
stat64("/home/olelain/.local/share//mime/globs", {st_mode=S_IFREG|0664,
st_size=92, ...}) = 0
stat64("/home/olelain/.local/share//mime/magic", {st_mode=S_IFREG|0664,
st_size=92, ...}) = 0
{st_mode=S_IFREG|0664, st_size=12, ...}) = 0
futex(0x242800, FUTEX_WAKE, 1futex(0x242800, FUTEX_WAIT, 2, NULL)    = 0
) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x242800, FUTEX_WAIT, 2, NULLopen("/dev/tty", O_RDWR|O_NONBLOCK|O_NOCTTY)
= -1 ENXIO (No such device or address)
writev(2, [{"*** glibc detected *** ", 23}, {"double free or corruption (out)",
31}, {": 0x", 4}, {"0831d848", 8}, {" ***\n", 5}], 5) = 71
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(7598, 7609, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
write(3, "\22\0\7\0@\2`\2\1\1\0\0\6\0\0\0 \3\5\0\1\0\0\0@\254\263"..., 36) = 36
write(3, " \0\2\0\0\0\0\0", 8)          = 8
write(3, "+\0\1\0", 4)                  = 4
read(3, "\34\310k\r@\2`\2\1\1\0\0E\254\263\0\0\2`\2\1\0\0\0H\310"..., 32) = 32
read(3, 0xb64cd834, 32)                 = -1 EAGAIN (Resource temporarily
unavailable)
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
read(3, "\1\2n\r\0\0\0\0A\2`\2\0\0\0\0\0\0\0\0\34\0\0\0\310\f\265"..., 32) = 32
futex(0x242800, FUTEX_WAIT, 2, NULL[olelain@trevezel ~]$
Comment 7 oll 2005-06-01 16:12:46 UTC
palm.keys is seen as Mime-type=octet-stream 

 All other keys files are seen as text/plain 
Comment 8 oll 2005-06-02 10:43:13 UTC
Just append : a crash with a core generated





*** glibc detected *** realloc(): invalid next size: 0xb632f2b0 ***
*** loading the extensions datasource
seahorse nautilus module initialized

 

BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/nautilus'.

Thread 12 (process 15345)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 g_object_ref
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #5 g_list_foreach
    from /opt/STools/gnome-2.10/lib/libglib-2.0.so.0
  • #6 eel_g_object_list_ref
    from /opt/STools/gnome-2.10/lib/libeel-2.so.2
  • #7 eel_g_object_list_copy
    from /opt/STools/gnome-2.10/lib/libeel-2.so.2
  • #8 nautilus_window_info_get_history
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #9 update_history
  • #10 g_cclosure_marshal_VOID__VOID
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #11 g_closure_invoke
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #12 signal_emit_unlocked_R
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #13 ??
  • #14 ??
  • #15 ??
  • #16 ??
  • #17 __libc_ptyname1
    from /lib/tls/libc.so.6
  • #18 ??
  • #19 ??
  • #20 ??
  • #21 ??
  • #22 ??
  • #23 g_value_object_free_value
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2

Comment 9 Christophe Fergeau 2005-06-09 17:07:07 UTC
*** Bug 167284 has been marked as a duplicate of this bug. ***
Comment 10 Christian Kirbach 2005-06-09 20:30:40 UTC
*** Bug 306866 has been marked as a duplicate of this bug. ***
Comment 11 oll 2005-06-10 06:36:40 UTC
I think it's relative to the files in the PREFIX/share/mime 
Some have UTF-8 charset (xml files) and some ascii 7 bits(those generated by
update-desktop-databses) 

There must be a problem in the way memory is allocated and then dealocated in
xdgmimeparent.c when it "composes" the mime-type , probably due to the different
size of both encodings : 

void
_xdg_mime_parent_read_from_file (XdgParentList *list,
                                 const char    *file_name)
{
  FILE *file;
  char line[255];
  int i, alloc;
  XdgMimeParents *entry;

  file = fopen (file_name, "r");

  if (file == NULL)
    return;

  /* FIXME: Not UTF-8 safe.  Doesn't work if lines are greater than 255 chars.
   * Blah */
  alloc = list->n_mimes + 16;
  list->parents = realloc (list->parents, alloc * sizeof (XdgMimeParents));
  while (fgets (line, 255, file) != NULL)
...

Comment 12 oll 2005-06-10 06:44:08 UTC
Maybe it can be easily reproduced with the mime test programs from gnome-vfs and
"playing" with enca for changing the charset of mime files.
http://trific.ath.cx/software/enca/
I'll try as soon as I have time to.

Just a clue , I'm just an IT, not a developper :-)
Comment 13 Christophe Fergeau 2005-06-10 07:15:50 UTC
The only file parsed by xdg_mime_parent_read_from_file is share/mime/subclasses,
this file should be pure ascii, so I don't think the problems will arise from
encoding confusion. There's https://bugs.freedesktop.org/show_bug.cgi?id=3506
which contains a fix for a bad memory allocation, but I'd be a bit surprised if
this was related. But it still can, who knows :)
Comment 14 Sebastien Bacher 2005-06-10 14:43:16 UTC
*** Bug 304235 has been marked as a duplicate of this bug. ***
Comment 15 Sebastien Bacher 2005-06-10 14:43:43 UTC
*** Bug 306885 has been marked as a duplicate of this bug. ***
Comment 16 oll 2005-06-10 15:45:20 UTC
Another one , even if I doubt it will help to faire avancer le schmilblick..



BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/nautilus'.

Thread 12 (process 4180)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 free
    from /lib/tls/libc.so.6
  • #5 _xdg_glob_list_free
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #6 _gnome_vfs_xdg_hash_free
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #7 _gnome_vfs_xdg_shutdown
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #8 xdg_mime_init
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #9 _gnome_vfs_xdg_mime_type_equal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #10 gnome_vfs_mime_type_is_equal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #11 gnome_vfs_mime_type_get_equivalence
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #12 nautilus_file_is_mime_type
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #13 nautilus_file_is_nautilus_link
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #14 lacks_link_info
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #15 has_problem
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #16 request_is_satisfied
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #17 nautilus_directory_check_if_ready_internal
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #18 vfs_file_check_if_ready
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #19 nautilus_file_check_if_ready
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #20 nautilus_icon_factory_is_icon_ready_for_file
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #21 nautilus_bookmark_update_icon
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #22 bookmark_file_changed_callback
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #23 g_cclosure_marshal_VOID__VOID
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #24 g_closure_invoke
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #25 signal_emit_unlocked_R
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #26 ??
  • #27 ??
  • #28 ??
  • #29 ??
  • #30 __PRETTY_FUNCTION__.2
    from /opt/STools/gnome-2.10/lib/libgtk-x11-2.0.so.0
  • #31 ??
  • #32 ??
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #33 ??
  • #34 __PRETTY_FUNCTION__.2
    from /opt/STools/gnome-2.10/lib/libgtk-x11-2.0.so.0
  • #35 ??
  • #36 ??
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #37 ??
  • #38 ??
  • #39 ??
  • #40 g_cclosure_marshal_VOID__VOID
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2

Comment 17 Christophe Fergeau 2005-06-10 15:52:40 UTC
Maybe the patch from https://bugs.freedesktop.org/show_bug.cgi?id=3506 would
help, but I'm mainly shooting in the dark :-/
Comment 18 Sebastien Bacher 2005-06-10 15:56:58 UTC
can you try the pointed patch? 
Comment 19 oll 2005-06-10 16:07:21 UTC
Yes that's very strange.
I can't reproduce it since gnome-vfs monitors new files (really new of moved).
After a dozen of crashes, it is quiet for a moment (never more than one hour).

Anyway , won't it be possible to return a failure status code  from the
gnome-vfs mime api, so that at least it doesn't  make nautilus freeze. (having
an "unknown" mime type,or even a wrong one would be painless)

I could try the patch but I'm not sure about the procedure : (and I want to
avoid a Nightmare Monday since dozen of users utilize the same libgnomevfs.so :-) )
just replacing the xdgmime.c attached in 
https://bugs.freedesktop.org/show_bug.cgi?id=3506
and recompiling gnome-vfs is enough ?
Comment 20 Federico Mena Quintero 2005-06-10 16:09:35 UTC
Yes, please try the patch from the bug mentioned in comment #17.  This bug could
subtly lead to memory corruption in things surrounding xdgmime.
Comment 21 Federico Mena Quintero 2005-06-10 16:14:38 UTC
I just checked gnome-vfs from the 2.10 branch on CVS, and it has a different
(older?) copy of xdgmime than, say, GTK+.  So this patch won't work out of the
box for it.
Comment 22 Federico Mena Quintero 2005-06-10 16:42:27 UTC
I just applied the patch to gnome-vfs HEAD.
Comment 23 oll 2005-06-10 17:00:20 UTC
I just patch gtk+ ? I realize It's a bit out of purpose there since I should
have patched  gnome-vfs.

Anyway it wasn't unusefull since it correct one big bug I had (still out of
purpose,anyway):

GtkFileChooser  doesn't crash anymore with Sunbird and DeerPark ...


Comment 24 Christophe Fergeau 2005-06-10 17:03:28 UTC
Yeah, the 2.10 branch uses an xdgmime version without the binary cache, the
cache was added not too long before the 2.10 release, so it sounded a bit risky
to add it. Did you check the only difference between HEAD and xdgmime CVS was
your patch?   I make one way syncs between freedesktop xdgmime code and
gnome-vfs, but I try to avoid applying random patches to gnome-vfs xdgmime code.
Comment 25 oll 2005-06-13 09:50:06 UTC
Yes,indeed !!
I don't want to take the risk to use the cvs version.
Is there a hope to have the patch applied to the "original" 2.10.1 version or do
I definitively have to wait for 2.10.2 ?
As for kernel, It would be great to have a 2-10-1-bf (bug fix) branch !! :-)
Comment 26 Christophe Fergeau 2005-06-13 09:52:38 UTC
How different would a 2.10.1.bf would be from 2.10.2 ? ;)
Comment 27 oll 2005-06-13 10:06:44 UTC
 I don't want to create the same flame as the 2.6.11.1..etc one !! :-)
But as your mentioned it right in #24, "cache api" visibly has been added to the
2.10 branch : so you can't just patch this bug without using this new "api".
But I don't care about the bf name : just call it -oll ( so that I know it's for
me ;) )
Resuming, I don't know which files of the original 2.10.1  I have to patch to
solve the https://bugs.freedesktop.org/show_bug.cgi?id=3506
Comment 28 Christophe Fergeau 2005-06-13 10:22:10 UTC
The cache stuff has been added to the 2.11 branch, and I'd rather avoid adding
it to the 2.10 branch. So 2.10 is an actual stable branch with no api change,
only bug fixes, while the 2.11 branch is where the development happens.
Comment 29 oll 2005-06-13 10:32:12 UTC
Oups, sorry : I was sure I choosed 2-10 tag in viewcvs : I just recheck it and
it wasn't obviously the case : sorry for my confusion.
But precisely, will the patch be available for the 2.10 branch or is there
finally no link, since 2.10 doesn't use cache ?

Something else : this ones seem to be the related:
http://bugzilla.gnome.org/show_bug.cgi?id=306259
http://bugzilla.gnome.org/show_bug.cgi?id=306251
Comment 30 Christophe Fergeau 2005-06-13 10:36:55 UTC
I know there are quite a bunch of crashes in xdgmime these days, but without a
way to reproduce them, I can't really fix it since I couldn't find anything
obvious :-/
Comment 31 Christophe Fergeau 2005-06-13 10:39:21 UTC
The patch I pointed out is useless in 2.10, so the cause of the crash must be
something else :(
Comment 32 oll 2005-06-17 11:34:08 UTC
I almost always have this crash with gnome-search-tools :

BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/gnome-search-tool'.

Thread 2 (process 13802)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 _gnome_vfs_xdg_hash_lookup_file_name
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #5 _gnome_vfs_xdg_get_mime_type_from_file_name
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #6 gnome_vfs_mime_type_from_name_or_default
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #7 _gnome_vfs_get_mime_type_internal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #8 gnome_vfs_get_file_mime_type_internal
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #9 get_mime_type
    from /opt/STools/gnome-2.10/lib/gnome-vfs-2.0/modules/libfile.so
  • #10 do_read_directory
    from /opt/STools/gnome-2.10/lib/gnome-vfs-2.0/modules/libfile.so
  • #11 gnome_vfs_directory_read_next_cancellable
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #12 _gnome_vfs_job_execute
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #13 thread_routine
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #14 thread_entry
    from /opt/STools/gnome-2.10/lib/libgnomevfs-2.so.0
  • #15 g_thread_create_proxy
    from /opt/STools/gnome-2.10/lib/libglib-2.0.so.0
  • #16 start_thread
    from /lib/tls/libpthread.so.0
  • #17 clone
    from /lib/tls/libc.so.6

Comment 33 Sebastien Bacher 2005-06-17 11:58:11 UTC
can you install a debug version of gnomevfs?
Comment 34 oll 2005-06-17 12:12:35 UTC
Unfortunatly, I think it will be hard : I presume I have to recompile/reinstall
with -g . But If i do that , all my stations will crash since libgnomevfs.so
will be replaced.
Anyway, is there a solution to do it "a posteriori" ? I mean without to have to
rehave a new libgnomevfs.so ? 
Comment 35 Christophe Fergeau 2005-06-17 13:17:33 UTC
On linux at least, this shouldn't matter (ie this shouldn't crash anything).
Comment 36 oll 2005-06-17 14:52:59 UTC
Here it is : it seems indeed more usefull.

BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/gnome-search-tool'.

Thread 2 (process 21368)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 _gnome_vfs_xdg_hash_lookup_file_name
    at xdgmimeglob.c line 295
  • #5 _gnome_vfs_xdg_get_mime_type_from_file_name
    at xdgmime.c line 477
  • #6 gnome_vfs_mime_type_from_name_or_default
    at gnome-vfs-mime.c line 119
  • #7 _gnome_vfs_get_mime_type_internal
    at gnome-vfs-mime.c line 252
  • #8 gnome_vfs_get_file_mime_type_internal
    at gnome-vfs-mime.c line 375
  • #9 get_mime_type
    at file-method.c line 600
  • #10 do_read_directory
    at file-method.c line 888
  • #11 gnome_vfs_directory_read_next_cancellable
    at gnome-vfs-directory.c line 225
  • #12 _gnome_vfs_job_execute
    at gnome-vfs-job.c line 1468
  • #13 thread_routine
    at gnome-vfs-job-slave.c line 64
  • #14 thread_entry
    at gnome-vfs-thread-pool.c line 186
  • #15 g_thread_create_proxy
    from /opt/STools/gnome-2.10/lib/libglib-2.0.so.0
  • #16 start_thread
    from /lib/tls/libpthread.so.0
  • #17 clone
    from /lib/tls/libc.so.6

Comment 37 oll 2005-06-17 15:02:25 UTC
This one is a gcore from a freeze : (i was right clicking on a file)

*** glibc detected *** realloc(): invalid next size: 0x085eef20 ***

 

BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/nautilus'.

Thread 11 (process 21285)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __lll_mutex_lock_wait
    from /lib/tls/libc.so.6
  • #2 _L_mutex_lock_39
    from /lib/tls/libc.so.6
  • #3 ??
  • #4 ??
  • #5 ??
  • #6 fixup
    from /lib/ld-linux.so.2
  • #7 fork
    from /lib/tls/libc.so.6
  • #8 fork
    from /lib/tls/libpthread.so.0
  • #9 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #10 <signal handler called>
  • #11 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #12 raise
    from /lib/tls/libc.so.6
  • #13 abort
    from /lib/tls/libc.so.6
  • #14 __libc_message
    from /lib/tls/libc.so.6
  • #15 _int_realloc
    from /lib/tls/libc.so.6
  • #16 realloc
    from /lib/tls/libc.so.6
  • #17 _gnome_vfs_xdg_alias_read_from_file
    at xdgmimealias.c line 157
  • #18 xdg_mime_init_from_directory
    at xdgmime.c line 161
  • #19 xdg_run_command_on_dirs
    at xdgmime.c line 238
  • #20 xdg_mime_init
    at xdgmime.c line 383
  • #21 _gnome_vfs_xdg_mime_type_equal
    at xdgmime.c line 554
  • #22 gnome_vfs_mime_type_is_equal
    at gnome-vfs-mime.c line 595
  • #23 gnome_vfs_mime_type_get_equivalence
    at gnome-vfs-mime.c line 627
  • #24 nautilus_file_is_mime_type
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #25 is_desktop_file
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #26 nautilus_file_can_rename
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #27 can_rename_file
  • #28 fm_icon_view_can_rename_file
  • #29 real_update_menus
  • #30 fm_icon_view_update_menus
  • #31 fm_directory_view_update_menus
  • #32 update_menus_if_pending
  • #33 fm_directory_view_pop_up_selection_context_menu
  • #34 icon_container_context_click_selection_callback
  • #35 g_cclosure_marshal_VOID__POINTER
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #36 g_closure_invoke
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #37 signal_emit_unlocked_R
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #38 ??
  • #39 ??
  • #40 ??
  • #41 ??
  • #42 ??
  • #43 ??
  • #44 cleanup_line
    from /opt/STools/gnome-2.10/lib/libgtk-x11-2.0.so.0
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2

Comment 38 Christophe Fergeau 2005-06-17 15:05:19 UTC
Did you include any optimization flag (-O2 for example) when you recompile with
-g ? If so, could you get a backtrace with a lib compiled with -g -ggdb and
without any -O option ? Thanks
Comment 39 oll 2005-06-17 15:13:56 UTC
yes indeed :
[olelain@trevezel ~]$ echo $CFLAGS
-march=pentium4 -mtune=pentium4 -msse2 -mfpmath=sse -O2 -g

CFLAGS="-g -ggdb" ?
or 
CFLAGS="-g -ggdb -march=pentium4 -mtune=pentium4 -msse2 -mfpmath=sse" ??
Comment 40 Christophe Fergeau 2005-06-17 15:14:53 UTC
CFLAGS="-g -ggdb"
Comment 41 oll 2005-06-17 15:36:46 UTC
Here it is :

*** glibc detected *** double free or corruption (!prev): 0x0813a190 ***

 

BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/gnome-search-tool'.

Thread 2 (process 21421)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 _gnome_vfs_xdg_hash_lookup_file_name
    at xdgmimeglob.c line 295
  • #5 _gnome_vfs_xdg_get_mime_type_from_file_name
    at xdgmime.c line 477
  • #6 gnome_vfs_mime_type_from_name_or_default
    at gnome-vfs-mime.c line 119
  • #7 _gnome_vfs_get_mime_type_internal
    at gnome-vfs-mime.c line 252
  • #8 gnome_vfs_get_file_mime_type_internal
    at gnome-vfs-mime.c line 375
  • #9 gnome_vfs_get_file_mime_type_fast
    at gnome-vfs-mime.c line 420
  • #10 get_mime_type
    at file-method.c line 600
  • #11 do_read_directory
    at file-method.c line 888
  • #12 gnome_vfs_directory_read_next_cancellable
    at gnome-vfs-directory.c line 225
  • #13 load_directory_details
    at gnome-vfs-job.c line 1468
  • #14 execute_load_directory
    at gnome-vfs-job.c line 1515
  • #15 _gnome_vfs_job_execute
    at gnome-vfs-job.c line 1669
  • #16 thread_routine
    at gnome-vfs-job-slave.c line 64
  • #17 thread_entry
    at gnome-vfs-thread-pool.c line 186
  • #18 g_thread_create_proxy
    from /opt/STools/gnome-2.10/lib/libglib-2.0.so.0
  • #19 start_thread
    from /lib/tls/libpthread.so.0
  • #20 clone
    from /lib/tls/libc.so.6

Comment 42 oll 2005-06-17 16:15:21 UTC
Now a freeze (gcored)

*** glibc detected *** realloc(): invalid next size: 0xb6420a10 ***

 

BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/nautilus'.

Thread 7 (process 21315)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __lll_mutex_lock_wait
    from /lib/tls/libc.so.6
  • #2 _L_mutex_lock_622
    from /lib/tls/libc.so.6
  • #3 main_arena
    from /lib/tls/libc.so.6
  • #4 ??
  • #5 ??
    from /lib/tls/libc.so.6
  • #6 __malloc_initialize_hook
    from /lib/tls/libc.so.6
  • #7 ??
  • #8 ??
  • #9 malloc
    from /lib/tls/libc.so.6
  • #10 malloc
    from /lib/tls/libc.so.6
  • #11 _nl_make_l10nflist
    from /lib/tls/libc.so.6
  • #12 _nl_make_l10nflist
    from /lib/tls/libc.so.6
  • #13 _nl_make_l10nflist
    from /lib/tls/libc.so.6
  • #14 _nl_make_l10nflist
    from /lib/tls/libc.so.6
  • #15 _nl_find_domain
    from /lib/tls/libc.so.6
  • #16 __dcigettext
    from /lib/tls/libc.so.6
  • #17 dcgettext
    from /lib/tls/libc.so.6
  • #18 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #19 <signal handler called>
  • #20 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #21 raise
    from /lib/tls/libc.so.6
  • #22 abort
    from /lib/tls/libc.so.6
  • #23 __libc_message
    from /lib/tls/libc.so.6
  • #24 _int_realloc
    from /lib/tls/libc.so.6
  • #25 realloc
    from /lib/tls/libc.so.6
  • #26 _gnome_vfs_xdg_alias_read_from_file
    at xdgmimealias.c line 150
  • #27 xdg_mime_init_from_directory
    at xdgmime.c line 161
  • #28 xdg_run_command_on_dirs
    at xdgmime.c line 238
  • #29 xdg_mime_init
    at xdgmime.c line 383
  • #30 _gnome_vfs_xdg_mime_type_equal
    at xdgmime.c line 554
  • #31 gnome_vfs_mime_type_is_equal
    at gnome-vfs-mime.c line 595
  • #32 gnome_vfs_mime_type_get_equivalence
    at gnome-vfs-mime.c line 627
  • #33 nautilus_file_is_mime_type
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #34 is_desktop_file
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #35 nautilus_file_can_rename
    from /opt/STools/gnome-2.10/lib/libnautilus-private.so.2
  • #36 can_rename_file
  • #37 fm_icon_view_can_rename_file
  • #38 real_update_menus
  • #39 fm_icon_view_update_menus
  • #40 fm_directory_view_update_menus
  • #41 update_menus_if_pending
  • #42 fm_directory_view_pop_up_selection_context_menu
  • #43 icon_container_context_click_selection_callback
  • #44 g_cclosure_marshal_VOID__POINTER
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #45 g_closure_invoke
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #46 signal_emit_unlocked_R
    from /opt/STools/gnome-2.10/lib/libgobject-2.0.so.0
  • #47 ??
  • #48 ??
  • #49 ??
  • #50 ??
  • #51 ??
  • #52 ??
  • #53 cleanup_line
    from /opt/STools/gnome-2.10/lib/libgtk-x11-2.0.so.0
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2

Comment 43 Martin Wehner 2005-06-18 11:55:07 UTC
*** Bug 308129 has been marked as a duplicate of this bug. ***
Comment 44 oll 2005-06-20 16:38:22 UTC
Is this the answer : ??

http://bugzilla.gnome.org/show_bug.cgi?id=170947
Comment 45 Christophe Fergeau 2005-06-20 16:40:49 UTC
Looks like a strong candidate, since I was thinking about threading issue after
looking at your backtraces. Could you test the patch?
Comment 46 Martin Wehner 2005-06-20 18:36:32 UTC
*** Bug 308392 has been marked as a duplicate of this bug. ***
Comment 47 oll 2005-06-21 07:03:45 UTC
Unfortunatly , I applied the patch and got another core.
But I just did a patch, then  make then make install.
Maybe I have to do a make clean before (or is it definitively useless ?)

*** loading the extensions datasource

 

BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/gnome-search-tool'.

Thread 2 (process 15890)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 _gnome_vfs_xdg_hash_lookup_file_name
    at xdgmimeglob.c line 295
  • #5 _gnome_vfs_xdg_get_mime_type_from_file_name
    at xdgmime.c line 477
  • #6 gnome_vfs_mime_type_from_name_or_default
    at gnome-vfs-mime.c line 119
  • #7 _gnome_vfs_get_mime_type_internal
    at gnome-vfs-mime.c line 254
  • #8 gnome_vfs_get_file_mime_type_internal
    at gnome-vfs-mime.c line 377
  • #9 gnome_vfs_get_file_mime_type_fast
    at gnome-vfs-mime.c line 422
  • #10 get_mime_type
    at file-method.c line 600
  • #11 do_read_directory
    at file-method.c line 888
  • #12 gnome_vfs_directory_read_next_cancellable
    at gnome-vfs-directory.c line 225
  • #13 load_directory_details
    at gnome-vfs-job.c line 1468
  • #14 execute_load_directory
    at gnome-vfs-job.c line 1515
  • #15 _gnome_vfs_job_execute
    at gnome-vfs-job.c line 1669
  • #16 thread_routine
    at gnome-vfs-job-slave.c line 64
  • #17 thread_entry
    at gnome-vfs-thread-pool.c line 186
  • #18 g_thread_create_proxy
    from /opt/STools/gnome-2.10/lib/libglib-2.0.so.0
  • #19 start_thread
    from /lib/tls/libpthread.so.0
  • #20 clone
    from /lib/tls/libc.so.6

Comment 48 oll 2005-06-21 14:32:21 UTC
Another trace with :
* max debug in glib and gnome-vfs.
* patch from http://bugzilla.gnome.org/show_bug.cgi?id=170947
* some printf added by Christophe.

Anyway, it seems I have less crashes with the 170947 patch. (none from nautilus
till there)



olelain : gnome-search-tool has crashed 
 
 
Core file is /tmp/crash.gnome.6067 
 
 
20 LAST LINES IN GNOME LOG 

xdg_mime_init2: 0x8267c28
xdg_mime_init: 0
xdg_mime_init2: 0x8267c28
xdg_mime_init: 0
xdg_mime_init2: 0x8267c28
xdg_mime_get_mime_type_from_file_name: 0x8267c28
xdg_mime_init: 0
xdg_mime_init2: 0x8267c28
xdg_mime_init: 0
xdg_mime_init2: 0x8267c28
xdg_mime_init: 0
xdg_mime_init2: 0x8267c28
xdg_mime_get_mime_type_from_file_name: 0x8267c28
xdg_mime_init: 0
xdg_mime_init2: 0x8267c28
xdg_mime_init: 0
xdg_mime_init2: 0x8267c28
xdg_mime_init: 0
xdg_mime_init2: 0x8267c28
xdg_mime_in
 

BACKTRACE : 

Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/opt/STools/gnome-2.10/bin/gnome-search-tool'.

Thread 2 (process 6069)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    from /opt/STools/gnome-2.10/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #5 raise
    from /lib/tls/libc.so.6
  • #6 abort
    from /lib/tls/libc.so.6
  • #7 __assert_fail
    from /lib/tls/libc.so.6
  • #8 _gnome_vfs_xdg_hash_lookup_file_name
    at xdgmimeglob.c line 294
  • #9 _gnome_vfs_xdg_get_mime_type_from_file_name
    at xdgmime.c line 480
  • #10 gnome_vfs_mime_type_from_name_or_default
    at gnome-vfs-mime.c line 119
  • #11 _gnome_vfs_get_mime_type_internal
    at gnome-vfs-mime.c line 254
  • #12 gnome_vfs_get_file_mime_type_internal
    at gnome-vfs-mime.c line 377
  • #13 gnome_vfs_get_file_mime_type_fast
    at gnome-vfs-mime.c line 422
  • #14 get_mime_type
    at file-method.c line 600
  • #15 do_read_directory
    at file-method.c line 888
  • #16 gnome_vfs_directory_read_next_cancellable
    at gnome-vfs-directory.c line 225
  • #17 load_directory_details
    at gnome-vfs-job.c line 1468
  • #18 execute_load_directory
    at gnome-vfs-job.c line 1515
  • #19 _gnome_vfs_job_execute
    at gnome-vfs-job.c line 1669
  • #20 thread_routine
    at gnome-vfs-job-slave.c line 64
  • #21 thread_entry
    at gnome-vfs-thread-pool.c line 186
  • #22 g_thread_create_proxy
    at gthread.c line 561
  • #23 start_thread
    from /lib/tls/libpthread.so.0
  • #24 clone
    from /lib/tls/libc.so.6

Comment 49 Christophe Fergeau 2005-06-21 15:16:05 UTC
The debugging info is more or less useless without showing the patch you applied...
The relevant line from the backtrace which explains the crash is
  • #8 _gnome_vfs_xdg_hash_lookup_file_name
    at xdgmimeglob.c line 294

The added printf seems to indicate that at some point in time, we leave
xdg_mime_init with a NULL global_hash, dunno yet how that can happen.
xdg_mime_shutdown doesn't seem to be called, and even if it was, need_reread
would be set to true.
Comment 50 oll 2005-06-21 15:26:44 UTC
Created attachment 48103 [details] [review]
christophe's patch
Comment 51 oll 2005-06-21 15:29:57 UTC
That's gnome-vfs 2.10.1 plus the 2 attached patches + this printf added :


Tu peux ajouter un printf dans xdgmime.c:xdg_mime_init :

/* Called in every public function.  It reloads the hash function if
need be.
 */
static void
xdg_mime_init (void)
{
  if (xdg_check_time_and_dirs ())
    {
      printf ("Shutting down\n");
      xdg_mime_shutdown ();
    }
Comment 52 oll 2005-06-21 15:32:51 UTC
Created attachment 48104 [details] [review]
170947's patch
Comment 53 oll 2005-06-24 07:07:12 UTC
I applied the 48104 attachment at the beginning of the week and users complain
no more about Nautilus. So I really think it  solves at least 95% of the problem.
Just  gnome-search-tool which goes on crashing some rare times.
Comment 54 Sebastien Bacher 2005-06-24 11:47:53 UTC
*** Bug 308780 has been marked as a duplicate of this bug. ***
Comment 55 oll 2005-06-30 17:10:22 UTC
hmm. Finally nautilus goes on crashing some times , even with the mime patch.
..even if it's far less often.
Comment 56 Sebastien Bacher 2005-07-17 13:41:03 UTC
*** Bug 305541 has been marked as a duplicate of this bug. ***
Comment 57 Sebastien Bacher 2005-07-17 13:42:28 UTC
do you have the same backtrace with the patch? Maybe this issue is fixed and you
have an another bug. When do you get the issue with the patch?
Comment 58 oll 2005-08-03 10:05:22 UTC
Some users go on having the bug (as I told before , far less often).
Unfortunatly, I didn't have it myself since weeks so no other useful bt to give.
Comment 59 Martin Wehner 2005-08-05 17:37:59 UTC
*** Bug 312466 has been marked as a duplicate of this bug. ***
Comment 60 oll 2005-08-16 12:34:09 UTC
Hmm, finally, I'm pretty sure that it always and only  happens after an
upgrade-mime-database.
Comment 61 oll 2005-09-28 20:16:31 UTC
Latest patch from Alex Larsson in cvs 2.10 branch ( again many thanks to him to
have taken time to commit it in 2.10 branch while I guess there's a lot of
things to do with 2.12).
For me and my 50 users, this bug belongs to past.
I prefer let Christophe (or other maintainers) close it regarding my poor C level.
Thanks to all again.
Comment 62 Christophe Fergeau 2005-09-29 07:15:41 UTC
Marking as fixed then.
Comment 63 Martin Wehner 2005-12-18 17:19:21 UTC
*** Bug 323973 has been marked as a duplicate of this bug. ***