GNOME Bugzilla – Bug 582579
gvfs-gdu-volume-monitor crashed with SIGSEGV in gdu_pool_get_presentables()
Last modified: 2014-11-03 11:49:22 UTC
The bug has been opened on https://bugs.launchpad.net/bugs/376145, the version used is a git snapshot taken on tuesday "#0 0x0092cfda in gdu_pool_get_presentables () from /usr/lib/libgdu.so.0
+ Trace 215438
I have noticed gvfs-gdu-volume-monitor doesn't crash if the package "devicekit-disks" are installed gvfs-gdu-volume-monitor crash only if no programme provide the dbus service "org.freedesktop.DeviceKit.Disks.service".
see https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/377426
the ubuntu bug is getting lot of duplicates and makes disks not being listed for lot of users in GNOME 2.27
Its not very nice that it crashes, but it seems like a packaging bug to ship the gdu volume monitor without devicekit-disks.
not sure where you read that gdu is shipped without devicekit-disks but that's not the case on most of those bugs, the issue seems to be fixed in the recent devicekit-disks 0.7 update though
This is actually caused by a D-Bus bug, but the crash on failure still isn't nice, up to you if you fix it. Thanks, James
(In reply to comment #5) > the issue seems to be fixed in the recent devicekit-disks 0.7 update though So this issue is fixed by shipping an updated version?
Sebastien, can you answer my last question?
seems users still get the issue on lucid by reading the ubuntu bug
I was cleaning up some Ubuntu bugs when I saw this bug was still open. Just FYI, we haven't seemed to have many reports past Lucid. So this is probably fixed from a user-visible standpoint. But the bug in gvfs is still there. gdu_pool_new() will return NULL in some error cases, and gvfs does not check its return value.
*** Bug 662189 has been marked as a duplicate of this bug. ***
I spoke too soon. The stacktrace has changed to include an assert on the libgdu side, so Ubuntu still is getting the crashes, just on a different bug: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/832379
Created attachment 211869 [details] [review] Proposed patch Here's a patch that avoids using monitor->pool if it's NULL. Obviously, the volume monitor is going to be less useful without a gdu pool, but it will not crash. I haven't actually run with this, because I don't know how to reliably reproduce the crash anyway. But the changes seem simple enough.
Review of attachment 211869 [details] [review]: Looks good, thanks for the patch. I've committed this with one more fix but haven't tested as I don't have gnome-disk-utility anywhere around. Somebody please test. This backend is in maintenance mode anyway. commit 60f0ed90b3fa4d70f7896096dd837dd2277a89ac Author: Tomas Bzatek <tbzatek@redhat.com> Date: Fri Sep 14 16:16:37 2012 +0200 gdu volume monitor: Don't unref possibly NULL object commit 3eb8533baba381e4c454b764692dea8ef5876ad1 Author: Michael Terry <michael.terry@canonical.com> Date: Fri Sep 14 16:14:53 2012 +0200 gdu volume monitor: Handle gdu_pool_new() returning NULL gracefully https://bugzilla.gnome.org/show_bug.cgi?id=582579
*** Bug 616200 has been marked as a duplicate of this bug. ***
*** Bug 651824 has been marked as a duplicate of this bug. ***