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 683270 - xdgmime: double free in xdg_mime_init_from_directory()
xdgmime: double free in xdg_mime_init_from_directory()
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal critical
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-09-03 13:54 UTC by Guillaume Desmottes
Modified: 2012-09-03 14:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Guillaume Desmottes 2012-09-03 13:54:43 UTC
I just updated to GLib master (4d1b0d46dbf3f735a8808d66bc2d30baa9bd3947) and now have this crash


*** glibc detected *** /home/cassidy/gnome/empathy/tests/interactive/.libs/lt-test-empathy-roster-model-aggregator: double free or corruption (fasttop): 0x00007fffe000da80 ***



  • #0 __GI_raise
    at ../nptl/sysdeps/unix/sysv/linux/raise.c line 64
  • #1 __GI_abort
    at abort.c line 91
  • #2 __libc_message
    at ../sysdeps/unix/sysv/linux/libc_fatal.c line 198
  • #3 malloc_printerr
  • #4 _int_free
    at malloc.c line 3948
  • #5 xdg_mime_init_from_directory
    at xdgmime.c line 159
  • #6 xdg_run_command_on_dirs
    at xdgmime.c line 289
  • #7 xdg_mime_init
    at xdgmime.c line 457
  • #8 _gio_xdg_get_mime_types_from_file_name
    at xdgmime.c line 588
  • #9 g_content_type_guess
    at gcontenttype.c line 625
  • #10 get_content_type
    at glocalfileinfo.c line 1236
  • #11 _g_local_file_info_get
    at glocalfileinfo.c line 1699
  • #12 g_local_file_enumerator_next_file
    at glocalfileenumerator.c line 405
  • #13 next_files_thread
    at gfileenumerator.c line 630
  • #14 run_in_thread
    at gsimpleasyncresult.c line 869
  • #15 io_job_thread
    at gioscheduler.c line 162
  • #16 g_thread_pool_thread_proxy
    at gthreadpool.c line 309
  • #17 g_thread_proxy
    at gthread.c line 797
  • #18 start_thread
    at pthread_create.c line 309
  • #19 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 115

Comment 1 Guillaume Desmottes 2012-09-03 13:55:32 UTC
Looks like that's a regression from this commit; reverting it fixes my crash.

http://git.gnome.org/browse/glib/commit/?id=4e7031f073db2df7297feab35c9d353b0b3977d8

commit 4e7031f073db2df7297feab35c9d353b0b3977d8
Author: Dan Winship <danw@gnome.org>
Date:   Fri Aug 24 17:03:35 2012 -0400

    xdgmime: plug a small leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682560
Comment 2 Dan Winship 2012-09-03 14:07:55 UTC
reverted for now