GNOME Bugzilla – Bug 757976
Segmentation fault with GNOME Disks 3.18.1
Last modified: 2017-10-10 03:46:07 UTC
Created attachment 315311 [details] gdb backtrace I'm using GNOME 3.18.1 on a Parabola GNU/Linux-libre system. Today I managed to make GNOME Disks crash while ejecting an USB flash drive. I successfully ejected it with Nautilus, then I went to Disks in order to power off the device. After having selected my device (Lexar USB Flash Drive) I clicked on the poweroff button on the top-right corner. I mean the button in the middle. And it crashed. I'm going to attach both a screenshot and a backtrace obtained with gdb.
Created attachment 315312 [details] screenshot of disks
The backtrace is missing all but the last couple of frames. Please install debuginfo and take the backtrace again!
I can't find a package called debuginfo for my GNU/Linux distribution. I simply edited the PKGBUILD file of the relevant packages and recompiled them with debugging information enabled and stripping of debug symbols disabled: options=(debug !strip) Unfortunately I also rebooted my computer since when I reported this bug, and I can't reproduce it anymore.
I experienced this bug again. I tried to obtain a new backtrace but I still get "No symbol table info available" messages at the end of it. Someone on the #gdb IRC channel said me that it "looks more like a broken stack frame than missing debug info". I have no significant experience at debugging with gdb, so I don't know what I should do to fix this broken stack frame. I'm going to post the new backtrace anyway.
Created attachment 330199 [details] gdb backtrace for gnome-disks
The new backtrace I posted was produced with the following package versions: gnome-disk-utility-3.20.1-1 glibc-2.23-1 glib2-2.48.0-1 udisks2-2.1.7-1 In addition to options 'debug' and '!strip' I also rebuilt those packages with the following variables: export CFLAGS="$CFLAGS -O0 -fbuiltin -g" export CXXFLAGS="$CXXFLAGS -O0 -fbuiltin -g"
I don't know how to help with this, sorry. In Fedora, gdb will give you a dnf debuginfo-install command you can use to install all relevant debuginfo; it only takes a couple seconds, doesn't require thinking, and doesn't require rebuilding anything. I searched for udisks_object_get_partition_table on codesearch.debian.net and the only hits were from udisks itself and gnome-disks, so we can be reasonably sure the next frame is gnome-disks. Why it's not appearing in the backtrace, I don't know. Maybe #gdb is right that it's a broken stack; I'm not really sure what that entails or what could cause it, though. But don't waste too much effort on this; to be perfectly honest, nobody is working on GNOME Disks or udisks right now, so it's not very likely your crash would be fixed even if you did manage to post a useful backtrace. Sorry. :/
I think this is a variant of this fixed bug. *** This bug has been marked as a duplicate of bug 787230 ***