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 591658 - update-notifier crashed with SIGSEGV in gdu_pool_get_devices()
update-notifier crashed with SIGSEGV in gdu_pool_get_devices()
Status: RESOLVED WONTFIX
Product: gnome-disk-utility
Classification: Core
Component: libgdu
0.4
Other Linux
: Normal critical
: ---
Assigned To: gnome-disk-utility-maint
Depends on:
Blocks:
 
 
Reported: 2009-08-13 09:25 UTC by Sebastien Bacher
Modified: 2009-08-29 12:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to handle NULL from gdu_pool_new (852 bytes, patch)
2009-08-13 13:07 UTC, James Westby
none Details | Review
Patch to handle NULL from gdu_pool_new (852 bytes, patch)
2009-08-13 13:07 UTC, James Westby
none Details | Review

Description Sebastien Bacher 2009-08-13 09:25:27 UTC
The bug has been opened on https://bugs.launchpad.net/bugs/403192

"#0  gdu_pool_get_devices (pool=0x0) at gdu-pool.c:1345
	list = (GList *) 0x1
	ret = (GList *) 0x0
	l = <value optimized out>
	__PRETTY_FUNCTION__ = "gdu_pool_get_devices"
  • #1 up_check_mounted_devices
    at gdu.c line 205
  • #2 up_do_hal_init
    at gdu.c line 220
  • #3 main
    at update-notifier.c line 549

Comment 1 Sebastien Bacher 2009-08-13 09:27:57 UTC
There is several duplicates on launchpad but no clear way to trigger the crash
Comment 2 James Westby 2009-08-13 13:06:41 UTC
Hi,

This crash is actually from update-notifier, but there is the same
issue in gdu-notification. Attached is a proposed patch to avoid
the crash in that case.

Thanks,

James
Comment 3 James Westby 2009-08-13 13:07:13 UTC
Created attachment 140652 [details] [review]
Patch to handle NULL from gdu_pool_new
Comment 4 James Westby 2009-08-13 13:07:38 UTC
Created attachment 140654 [details] [review]
Patch to handle NULL from gdu_pool_new
Comment 5 Javier Jardón (IRC: jjardon) 2009-08-17 00:28:34 UTC
I've set the importance to critical because It's a crash
Comment 6 David Zeuthen (not reading bugmail) 2009-08-17 17:24:17 UTC
Uh, something with your system is misconfigured if gdu_pool_new() returns NULL... do you not have DeviceKit-disks correctly installed?
Comment 7 James Westby 2009-08-17 18:14:58 UTC
I'm not sure what went wrong. devkit-disks behaves fine now. I've only
seen the issue once so far, at login, so it could possibly be a
race condition. I'll watch out for further issues.

Thanks,

James
Comment 8 James Westby 2009-08-25 17:52:30 UTC
Ok, the issue seems to be that

  http://cgit.freedesktop.org/DeviceKit/DeviceKit-disks/tree/data/org.freedesktop.DeviceKit.Disks.conf.in

doesn't allow org.freedesktop.DBus.Properties to be called
on that interface, which is required for g-d-u.


(gdu-notification-daemon:5490): libgdu-WARNING **: Couldn't call GetAll() to get properties for /: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(gdu-notification-daemon:5490): libgdu-WARNING **: Couldn't get daemon properties


Thanks,

James
Comment 9 Martin Pitt 2009-08-25 18:44:46 UTC
For the record, James did a patch:

http://bazaar.launchpad.net/~james-w/ubuntu/karmic/devicekit-disks/fix-403192/revision/14
Comment 10 James Westby 2009-08-28 17:01:42 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=23579 filed for the
change to DeviceKit-disks.

Thanks,

James
Comment 11 Martin Pitt 2009-08-29 12:21:27 UTC
Thanks, James. The original reporter confirmed that the devkit d-bus ACL update fixes this problem. So based on David's assessment above I close this.