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 595785 - crash in IA__g_simple_async_result_complete, mount_reply
crash in IA__g_simple_async_result_complete, mount_reply
Status: RESOLVED OBSOLETE
Product: gvfs
Classification: Core
Component: client module
1.6.x
Other All
: High critical
: ---
Assigned To: gvfs-maint
gvfs-maint
: 594429 607943 607944 607951 611287 620117 621392 664449 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-09-20 23:30 UTC by Giorgos Skafidas
Modified: 2018-09-21 16:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.31/2.32


Attachments
Proposed fix (876 bytes, patch)
2010-03-22 00:38 UTC, Jérémie Detrey
reviewed Details | Review

Description Giorgos Skafidas 2009-09-20 23:30:39 UTC
What were you doing when the application crashed?
I was trying to mount a Creative Zen media player (MTP device).


Distribution: Debian squeeze/sid
Gnome Release: 2.26.1 2009-04-14 (Debian)
BugBuddy Version: 2.26.0

System: Linux 2.6.30-2-686 #1 SMP Wed Sep 16 17:17:28 UTC 2009 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10603901
Selinux: No
Accessibility: Disabled
GTK+ Theme: ClearlooksClassic
Icon Theme: Mist
GTK+ Modules: gnomebreakpad, canberra-gtk-module

Memory status: size: 37949440 vsize: 37949440 resident: 8757248 share: 6885376 rss: 8757248 rss_rlim: 18446744073709551615
CPU usage: start_time: 1253434773 rtime: 46 utime: 42 stime: 4 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/lib/gnome-applets/drivemount_applet2'

(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xb7f56424 in __kernel_vsyscall ()

Thread 1 (Thread 0xb6d50af0 (LWP 2114))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/i686/cmov/libpthread.so.0
  • #2 g_spawn_sync
    from /usr/lib/libglib-2.0.so.0
  • #3 g_spawn_command_line_sync
    from /usr/lib/libglib-2.0.so.0
  • #4 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #5 <signal handler called>
  • #6 ??
  • #7 g_simple_async_result_complete
    from /usr/lib/libgio-2.0.so.0
  • #8 ??
    from /usr/lib/gio/modules/libgvfsdbus.so
  • #9 ??
    from /usr/lib/libgvfscommon.so.0
  • #10 ??
    from /lib/libdbus-1.so.3
  • #11 ??
    from /lib/libdbus-1.so.3
  • #12 dbus_connection_dispatch
    from /lib/libdbus-1.so.3
  • #13 ??
    from /usr/lib/libgvfscommon.so.0
  • #14 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #15 ??
    from /usr/lib/libglib-2.0.so.0
  • #16 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #17 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #18 bonobo_generic_factory_main_timeout
    from /usr/lib/libbonobo-2.so.0
  • #19 bonobo_generic_factory_main
    from /usr/lib/libbonobo-2.so.0
  • #20 panel_applet_factory_main_closure
    from /usr/lib/libpanel-applet-2.so.0
  • #21 panel_applet_factory_main
    from /usr/lib/libpanel-applet-2.so.0
  • #22 ??
  • #23 __libc_start_main
    from /lib/i686/cmov/libc.so.6
  • #24 ??
The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]


----------- .xsession-errors (23062 sec old) ---------------------
(firefox-bin:21517): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:21517): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:21517): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:21517): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:21517): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:21517): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:21517): Gdk-WARNING **: XID collision, trouble ahead
...Too much output, ignoring rest...
--------------------------------------------------
Comment 1 Fabio Durán Verdugo 2009-09-21 01:02:26 UTC
Thanks for taking the time to report this bug.
Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so and reopen this bug or report a new one. Thanks in advance!
Comment 2 Giorgos Skafidas 2009-09-22 20:46:36 UTC
Hello, thanks for your response. I've installed debugging packages and I hope this report will be more useful than my previous one. In addition to mounting my MTP player, this problem also appears when I mount an audio CD. As far as I can see, the problem probably lies with the device mount applet, since I can mount media through Nautilus without a problem. 

I'm seeing quite a lot of "No symbol table info available" messages in this trace. Is this normal or am I still missing debugging-related packages?

Thank you very much for your help :)


Distribution: Debian squeeze/sid
Gnome Release: 2.26.1 2009-04-14 (Debian)
BugBuddy Version: 2.26.0

System: Linux 2.6.30-2-686 #1 SMP Wed Sep 16 17:17:28 UTC 2009 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10603901
Selinux: No
Accessibility: Disabled
GTK+ Theme: ClearlooksClassic
Icon Theme: Mist
GTK+ Modules: gnomebreakpad, canberra-gtk-module

Memory status: size: 38068224 vsize: 38068224 resident: 12533760 share: 10481664 rss: 12533760 rss_rlim: 18446744073709551615
CPU usage: start_time: 1253651846 rtime: 39 utime: 38 stime: 1 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/lib/gnome-applets/drivemount_applet2'

[Thread debugging using libthread_db enabled]
0xb800b424 in __kernel_vsyscall ()

Thread 1 (Thread 0xb6d97af0 (LWP 9806))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/i686/cmov/libpthread.so.0
  • #2 IA__g_spawn_sync
    at /build/buildd/glib2.0-2.21.6/glib/gspawn.c line 386
  • #3 IA__g_spawn_command_line_sync
    at /build/buildd/glib2.0-2.21.6/glib/gspawn.c line 700
  • #4 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #5 <signal handler called>
  • #6 ??
  • #7 IA__g_simple_async_result_complete
    at /build/buildd/glib2.0-2.21.6/gio/gsimpleasyncresult.c line 590
  • #8 mount_reply
    at gdaemonfile.c line 1442
  • #9 handle_async_reply
    at gdbusutils.c line 1226
  • #10 ??
    from /lib/libdbus-1.so.3
  • #11 ??
    from /lib/libdbus-1.so.3
  • #12 dbus_connection_dispatch
    from /lib/libdbus-1.so.3
  • #13 dbus_source_dispatch
    at gdbusutils.c line 811
  • #14 g_main_dispatch
    at /build/buildd/glib2.0-2.21.6/glib/gmain.c line 1960
  • #15 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.21.6/glib/gmain.c line 2513
  • #16 g_main_context_iterate
    at /build/buildd/glib2.0-2.21.6/glib/gmain.c line 2591
  • #17 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.21.6/glib/gmain.c line 2799
  • #18 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #19 bonobo_generic_factory_main_timeout
    from /usr/lib/libbonobo-2.so.0
  • #20 bonobo_generic_factory_main
    from /usr/lib/libbonobo-2.so.0
  • #21 panel_applet_factory_main_closure
    from /usr/lib/libpanel-applet-2.so.0
  • #22 panel_applet_factory_main
    from /usr/lib/libpanel-applet-2.so.0
  • #23 main
    at drivemount.c line 211


----------- .xsession-errors (32883 sec old) ---------------------
(firefox-bin:2291): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:2291): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:2291): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:2291): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:2291): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:2291): Gdk-WARNING **: XID collision, trouble ahead
(firefox-bin:2291): Gdk-WARNING **: XID collision, trouble ahead
...Too much output, ignoring rest...
--------------------------------------------------
Comment 3 Fabio Durán Verdugo 2010-01-24 21:26:54 UTC
*** Bug 607951 has been marked as a duplicate of this bug. ***
Comment 4 Fabio Durán Verdugo 2010-01-24 21:27:34 UTC
*** Bug 607943 has been marked as a duplicate of this bug. ***
Comment 5 Fabio Durán Verdugo 2010-01-24 21:28:12 UTC
*** Bug 607944 has been marked as a duplicate of this bug. ***
Comment 6 Fabio Durán Verdugo 2010-01-24 21:30:43 UTC
*** Bug 594429 has been marked as a duplicate of this bug. ***
Comment 7 Akhil Laddha 2010-02-27 13:53:28 UTC
*** Bug 611287 has been marked as a duplicate of this bug. ***
Comment 8 Jérémie Detrey 2010-03-22 00:38:00 UTC
Created attachment 156702 [details] [review]
Proposed fix

It seems that this crash occurs when the mounting operation terminates. This operation is started by the applet in the mount_drive() function (drivemount/drive-button.c), which calls g_volume_mount().

When terminating, the operation calls GVFS' function mount_foreign_callback() in source file monitor/proxy/gproxyvolume.c, which in turn calls the callback function specified in the original call to g_volume_mount(), as per http://library.gnome.org/devel/gio/stable/GVolume.html#g-volume-mount

However, the Disk Mounter applet uses NULL for the callback (correct according to the above g_volume_mount() specifications) but GVFS does _not_ check whether the callback is NULL or not. Hence the segfault.

The solution I found was to add a check in GVFS, which seems to have completely fixed the problem. A simple patch is attached to this reply.
Comment 9 Javier Jardón (IRC: jjardon) 2010-03-24 01:38:07 UTC
Confirming.

Also, this bug was filled agains GNOME 2.26, Could you reproduce this in newer versions. If yes, could you update the "version" fields?
Comment 10 André Klapper 2010-04-25 10:00:33 UTC
Moving to gvfs as per comment 8.
Comment 11 Fabio Durán Verdugo 2010-05-30 20:45:23 UTC
*** Bug 620117 has been marked as a duplicate of this bug. ***
Comment 12 Akhil Laddha 2010-06-12 18:44:13 UTC
*** Bug 621392 has been marked as a duplicate of this bug. ***
Comment 13 Akhil Laddha 2011-11-21 08:20:02 UTC
*** Bug 664449 has been marked as a duplicate of this bug. ***
Comment 14 Akhil Laddha 2011-11-21 08:22:06 UTC
last dupe in GNOME 2.32.x
Comment 15 Ross Lagerwall 2013-12-03 22:49:18 UTC
Review of attachment 156702 [details] [review]:

Patch looks OK but we should fix other stuff at the same time too (like g_volume_eject()) and also check if any changes are needed in the other volume monitors.

bug 710995 is somewhat related.
Comment 16 Ross Lagerwall 2013-12-03 22:49:25 UTC
Review of attachment 156702 [details] [review]:

Patch looks OK but we should fix other stuff at the same time too (like g_volume_eject()) and also check if any changes are needed in the other volume monitors.

bug 710995 is somewhat related.
Comment 17 Ondrej Holy 2016-10-19 13:41:50 UTC
Hal volume monitor is obsolete currently, changing component to client, because it is rather client issue and this issue seems to be still valid...

Something like this has been fixed recently, but it seems there are more places where it should be fixed:
commit fcbf262537f3d14035ac31107c7a4ba7a31905af
Comment 18 GNOME Infrastructure Team 2018-09-21 16:53:49 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gvfs/issues/116.