gparted crashes immediately after started

Bug #1450180 reported by Luc Pi
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
GParted
Fix Released
Medium
glibmm2.4 (Ubuntu)
Invalid
Undecided
Unassigned
gparted (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

gparted immediately segfaults after launch...

$ sudo gparted
[sudo] password for me:
Segmentation fault (core dumped)

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: gparted 0.19.0-2
Uname: Linux 4.1.0-040100rc1-generic i686
ApportVersion: 2.17.2-0ubuntu1
Architecture: i386
CurrentDesktop: GNOME
Date: Wed Apr 29 21:53:15 2015
InstallationDate: Installed on 2014-06-17 (316 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140417)
JournalErrors: Error: command ['journalctl', '-b', '--priority', 'warning'] failed with exit code 1: No journal files were found.
SourcePackage: gparted
UpgradeStatus: Upgraded to vivid on 2015-04-27 (2 days ago)

Revision history for this message
Luc Pi (oluc) wrote :
Revision history for this message
Srdjan Grubor (sgnn7) wrote :

sudo gdb gpartedbin
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gpartedbin...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/sbin/gpartedbin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6a6993a in Glib::wrap_register(unsigned long, Glib::ObjectBase* (*)(_GObject*)) () from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gparted (Ubuntu):
status: New → Confirmed
Revision history for this message
Phillip Susi (psusi) wrote :

gparted is a shell script that runs the real program, gpartedbin. Your valgrind run on gparted just debugged the shell ( dash ) instead of gparted itself. Can you install the debsums package and verify that none of your libraries are corrupt?

Changed in gparted (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Srdjan Grubor (sgnn7) wrote :

@Philip: Yeah, I found that it runs with a script after the initial post which is why I hid it but gpartedbin is really having issues and valgrind log was run on the binary and not the launcher.

$ debsums gparted
/usr/bin/gparted-pkexec OK
/usr/sbin/gparted OK
/usr/sbin/gpartedbin OK
/usr/share/appdata/gparted.appdata.xml OK
/usr/share/applications/gparted.desktop OK
/usr/share/doc/gparted/README.gz OK
/usr/share/doc/gparted/changelog.Debian.gz OK
/usr/share/doc/gparted/copyright OK
/usr/share/gnome/help/gparted/C/figures/gparted_window.png OK
/usr/share/gnome/help/gparted/C/gparted.xml OK
/usr/share/icons/hicolor/16x16/apps/gparted.png OK
/usr/share/icons/hicolor/22x22/apps/gparted.png OK
/usr/share/icons/hicolor/24x24/apps/gparted.png OK
/usr/share/icons/hicolor/32x32/apps/gparted.png OK
/usr/share/icons/hicolor/48x48/apps/gparted.png OK
/usr/share/icons/hicolor/scalable/apps/gparted.svg OK
/usr/share/man/man8/gparted.8.gz OK
/usr/share/menu/gparted OK
/usr/share/omf/gparted/gparted-C.omf OK
/usr/share/pixmaps/gparted.xpm OK
/usr/share/polkit-1/actions/com.ubuntu.pkexec.gparted.policy OK

Revision history for this message
Srdjan Grubor (sgnn7) wrote :

Log:
sudo valgrind -v gpartedbin

Revision history for this message
Phillip Susi (psusi) wrote :

I meant to debsum your entire system, not just gparted, as most likely one of your libraries is corrupt. Valgrind is also complaining about bad CRCs on a number of libraries, indicating that they are corrupt.

Revision history for this message
Srdjan Grubor (sgnn7) wrote :

Probably related: https://bugzilla.gnome.org/show_bug.cgi?id=743466

They seem to have a patch upstream for glibmm

Changed in gparted:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Luc Pi (oluc) wrote :

Do you know when this will land in ubuntu?

Revision history for this message
Phillip Susi (psusi) wrote :

Looks like the bug is in glibmm so assigning a task there. Hopefully that upstream patch can get applied quickly.

Revision history for this message
Phillip Susi (psusi) wrote :

So I'm not able to reproduce this on vivid, are you running a non standard version of libgtkmm?

Changed in glibmm2.4 (Ubuntu):
status: New → Incomplete
Revision history for this message
Luc Pi (oluc) wrote :

I believe that I have standard packages

$ apt-cache showpkg libgtkmm-2.4-1c2a
Package: libgtkmm-2.4-1c2a
Versions:
1:2.24.4-1.1 (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_vivid_main_binary-i386_Packages) (/var/lib/dpkg/status)

$ debsums libgtkmm-2.4-1c2a
/usr/lib/i386-linux-gnu/libgdkmm-2.4.so.1.1.0 OK
/usr/lib/i386-linux-gnu/libgtkmm-2.4.so.1.1.0 OK

any other check?

Revision history for this message
Phillip Susi (psusi) wrote :

I wonder if you are really having the same issue as srdjan? Can you try running gdb like he did?

Revision history for this message
Luc Pi (oluc) wrote :

I get pretty much the same output

$ sudo gdb gpartedbin
...
...
Reading symbols from gpartedbin...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/sbin/gpartedbin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xb7b24506 in Glib::wrap_register(unsigned long, Glib::ObjectBase* (*)(_GObject*)) () from /usr/lib/i386-linux-gnu/libglibmm-2.4.so.1

Revision history for this message
Marko (markotheprogrammer) wrote :

Since no one here bothered to mention... you need gtk 3.16 installed for this to happen.

Revision history for this message
Luc Pi (oluc) wrote :

> you need gtk 3.16 installed for this to happen.

my gparted uses gtk-2.
Do you mean that without gtk-3 on the system, gparted works?

Package: gparted
Version: 0.19.0-2
Depends:
libglib2.0-0 (>= 2.12.0),
libglibmm-2.4-1c2a (>= 2.42.0),
libgtk2.0-0 (>= 2.14.0),
libgtkmm-2.4-1c2a (>= 1:2.24.0),
...

http://packages.ubuntu.com/vivid/gparted

Revision history for this message
Phillip Susi (psusi) wrote :

So you mean you have third party or self built packages installed?

Revision history for this message
Luc Pi (oluc) wrote :

> So you mean you have third party or self built packages installed?

if this is addressed to me (?), the answer is no. (see also my Comment #14)
On my system, gparted and gtkmm come from 'http://fr.archive.ubuntu.com/ubuntu/ vivid/main'

As far as I can see, gparted in Ubuntu 15.04 is using GTK2:
http://packages.ubuntu.com/vivid/gparted

Revision history for this message
Luc Pi (oluc) wrote :

But OK,

what Srdjan suggests in Comment #10 seems to be the root cause. (any rationale to think otherwise?)

The bug was acknowledged and fixed upstream:

- https://bugzilla.gnome.org/show_bug.cgi?id=743466#c4
- https://git.gnome.org/browse/glibmm/commit/?id=10e24926a149c8dbfbc5853b2d4ff5a4cd50bc4b

Could it be backported and released in Ubuntu?

Revision history for this message
Phillip Susi (psusi) wrote :

Ubuntu does not ship gtk 3.16, hence my question as to where you got it.

Revision history for this message
Luc Pi (oluc) wrote :

> Ubuntu does not ship gtk 3.16, hence my question as to where you got it.
OK! I have GNOME3 ppa enabled, that pulls gtk 3.16 indeed.

How is it related to gparted?

Revision history for this message
Phillip Susi (psusi) wrote :

gparted uses glibmm which had this bug occur and was fixed upstream. If the gnome3 ppa is shipping a version that still has the bug, you should let them know as they will need to fix it. Since it isn't part of Ubuntu there's nothing we can do.

Changed in glibmm2.4 (Ubuntu):
status: Incomplete → Invalid
Changed in gparted (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Luc Pi (oluc) wrote :

Phillip,
I certainly missed something, but, as far as I can understand,

1. gparted does not use gtk 3
2. gparted uses gtk 2
3. gparted, libgtk-2 and ligtkmm-2 are provided by Ubuntu

$ apt-cache madison gparted libgtk2.0-0 libgtkmm-2.4-1c2a
gparted | 0.19.0-2 | http://fr.archive.ubuntu.com/ubuntu/ vivid/main i386 Packages
libgtk2.0-0 | 2.24.27-0ubuntu1 | http://fr.archive.ubuntu.com/ubuntu/ vivid/main i386 Packages
libgtkmm-2.4-1c2a | 1:2.24.4-1.1 | http://fr.archive.ubuntu.com/ubuntu/ vivid/main i386 Packages

Could you explain how gtk 3 is related to gparted?

Revision history for this message
Phillip Susi (psusi) wrote :

Hrm... I had assumed that the gtk3 ppa included a newer version of libgtkmm-2.4-1c2a since this bug is not present in version 2.24.4 ( it was introduced upstream in a later version and subsequently fixed ). Can you run ldd `which gpartedbin`?

Revision history for this message
Luc Pi (oluc) wrote :
Download full text (4.4 KiB)

$ ldd `which gpartedbin`
 linux-gate.so.1 => (0xb7701000)
 libparted.so.2 => /lib/i386-linux-gnu/libparted.so.2 (0xb7681000)
 libparted-fs-resize.so.0 => /lib/i386-linux-gnu/libparted-fs-resize.so.0 (0xb7661000)
 libgtkmm-2.4.so.1 => /usr/lib/i386-linux-gnu/libgtkmm-2.4.so.1 (0xb731f000)
 libatkmm-1.6.so.1 => /usr/lib/i386-linux-gnu/libatkmm-1.6.so.1 (0xb72dd000)
 libgdkmm-2.4.so.1 => /usr/lib/i386-linux-gnu/libgdkmm-2.4.so.1 (0xb7294000)
 libpangomm-1.4.so.1 => /usr/lib/i386-linux-gnu/libpangomm-1.4.so.1 (0xb7269000)
 libglibmm-2.4.so.1 => /usr/lib/i386-linux-gnu/libglibmm-2.4.so.1 (0xb71f6000)
 libsigc-2.0.so.0 => /usr/lib/i386-linux-gnu/libsigc-2.0.so.0 (0xb71ee000)
 libgtk-x11-2.0.so.0 => /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 (0xb6cf8000)
 libgdk-x11-2.0.so.0 => /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0 (0xb6c38000)
 libgobject-2.0.so.0 => /usr/lib/i386-linux-gnu/libgobject-2.0.so.0 (0xb6bdb000)
 libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xb6ab3000)
 libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xb6aac000)
 libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb69b7000)
 libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb696a000)
 libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb694d000)
 libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb6930000)
 libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb6774000)
 libdevmapper.so.1.02.1 => /lib/i386-linux-gnu/libdevmapper.so.1.02.1 (0xb6720000)
 libblkid.so.1 => /lib/i386-linux-gnu/libblkid.so.1 (0xb66d8000)
 libgiomm-2.4.so.1 => /usr/lib/i386-linux-gnu/libgiomm-2.4.so.1 (0xb655e000)
 libcairomm-1.0.so.1 => /usr/lib/i386-linux-gnu/libcairomm-1.0.so.1 (0xb653a000)
 libatk-1.0.so.0 => /usr/lib/i386-linux-gnu/libatk-1.0.so.0 (0xb6512000)
 libgdk_pixbuf-2.0.so.0 => /usr/lib/i386-linux-gnu/libgdk_pixbuf-2.0.so.0 (0xb64ea000)
 libpangocairo-1.0.so.0 => /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0 (0xb64dc000)
 libpango-1.0.so.0 => /usr/lib/i386-linux-gnu/libpango-1.0.so.0 (0xb648a000)
 libgmodule-2.0.so.0 => /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0 (0xb6485000)
 libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb6339000)
 libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xb6332000)
 libcairo.so.2 => /usr/lib/i386-linux-gnu/libcairo.so.2 (0xb61eb000)
 libgio-2.0.so.0 => /usr/lib/i386-linux-gnu/libgio-2.0.so.0 (0xb602c000)
 libpangoft2-1.0.so.0 => /usr/lib/i386-linux-gnu/libpangoft2-1.0.so.0 (0xb6015000)
 libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xb5fd1000)
 libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xb5fc5000)
 libXinerama.so.1 => /usr/lib/i386-linux-gnu/libXinerama.so.1 (0xb5fc1000)
 libXi.so.6 => /usr/lib/i386-linux-gnu/libXi.so.6 (0xb5faf000)
 libXrandr.so.2 => /usr/lib/i386-linux-gnu/libXrandr.so.2 (0xb5fa4000)
 libXcursor.so.1 => /usr/lib/i386-linux-gnu/libXcursor.so.1 (0xb5f98000)
 libXcomposite.so.1 => /usr/lib/i386-linux-gnu/libXcomposite.so.1 (0xb5f94000)
 libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xb5f90000)
 libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb5f7b000)
 libffi.so.6 => /usr/lib/i386-linux-gnu/libffi.so.6 (0xb5f71000)
 libpcre.so.3 => /lib/i386-linux-gn...

Read more...

Revision history for this message
Phillip Susi (psusi) wrote :

Can you check the md5sum of /usr/lib/i386-linux-gnu/libgtkmm-2.4.so.1?

Revision history for this message
Luc Pi (oluc) wrote :

Like this?

$ debsums libgtkmm-2.4-1c2a
/usr/lib/i386-linux-gnu/libgdkmm-2.4.so.1.1.0 OK
/usr/lib/i386-linux-gnu/libgtkmm-2.4.so.1.1.0 OK
/usr/share/doc/libgtkmm-2.4-1c2a/AUTHORS OK
/usr/share/doc/libgtkmm-2.4-1c2a/NEWS.gz OK
/usr/share/doc/libgtkmm-2.4-1c2a/README OK
/usr/share/doc/libgtkmm-2.4-1c2a/changelog.Debian.gz OK
/usr/share/doc/libgtkmm-2.4-1c2a/copyright OK

Revision history for this message
Phillip Susi (psusi) wrote :

Weird... can you go through the list of libs from ldd and see if any of them are from the ppa instead of the official archive? There must be one somewhere, and it apparently isn't libgtkmm itself.

Revision history for this message
Luc Pi (oluc) wrote :

If I got it right, these are the ones coming from gnome3-staging ppa

libatk1.0-0 | 2.16.0-0ubuntu1~vivid1
libgdk-pixbuf2.0-0 | 2.31.1-1~utopic1
libglib2.0-0 | 2.44.0-0ubuntu1~vivid0
libglibmm-2.4-1c2a | 2.43.2-0ubuntu1~vivid1Packages
libpango-1.0-0 | 1.36.7-1~utopic1
libpangocairo-1.0-0 | 1.36.7-1~utopic1Packages
libpangoft2-1.0-0 | 1.36.7-1~utopic1

Revision history for this message
Luc Pi (oluc) wrote :

Yes, right, there is libglibmm-2.4-1c2a

- libglibmm-2.4-1c2a | 2.43.2-0ubuntu1~vivid1 (gnome3-staging)
- libglibmm-2.4-1c2a | 2.42.0-1 (ubuntu)

(I was mistaken with libgtkmm, in my comment earlier)

I downgraded libglibmm to 2.42 from Ubuntu, and gparted works. Thanks for your help!

So could this report be forwarded/assigned to gnome3 team?

Revision history for this message
Phillip Susi (psusi) wrote :

Nope... launchpad can't be used to track bugs in PPAs... you might email them though at <email address hidden> .

Revision history for this message
Luc Pi (oluc) wrote :

It's weird that reports cannot be forwarded. Anyway, I created a new one:
https://bugs.launchpad.net/ubuntu-gnome/+bug/1457056

This report can be closed.

Thanks for your support Plillip!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.