Gparted crashes when running fsck on fat32 partition

Bug #1435430 reported by Skyman on 2015-03-23
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Undecided
Unassigned

Bug Description

I runned:
kdesudo "gparted /dev/sdb"

/dev/sdb is a usb memory stick with only one partition (sdb) which is formatted as fat32.
In gparted I selected the partition (which was not mounted) and select from the context menu "check" and afterwards apllied the operation.

Gparted reproducibly crashes on applying this change.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gparted 0.18.0-1
ProcVersionSignature: Ubuntu 3.13.0-46.79-generic 3.13.11-ckt15
Uname: Linux 3.13.0-46-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 2.14.1-0ubuntu3.7
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Mar 23 17:53:41 2015
InstallationDate: Installed on 2015-03-04 (19 days ago)
InstallationMedia: Kubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
SourcePackage: gparted
UpgradeStatus: No upgrade log present (probably fresh install)

Skyman (sskyman) wrote :
Phillip Susi (psusi) wrote :

We will need more information to go on that "it crashed". What exactly did it say? Normally when a program crashes, you get a pop up asking if you want to submit a bug report and the appropriate logs are attached, but it seems you submitted this report by hand.

Changed in gparted (Ubuntu):
status: New → Incomplete
Skyman (sskyman) wrote :

After using "ulimit -c unlimited" it shows on the console:

Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
======================
libparted : 2.3
======================

(gpartedbin:4695): GLib-CRITICAL **: Source ID 7 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 6 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 26 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 25 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 29 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 28 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 32 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 31 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 35 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 34 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 38 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 37 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 41 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 40 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 491 was not found when attempting to remove it

(gpartedbin:4695): GLib-CRITICAL **: Source ID 490 was not found when attempting to remove it
Versuch, die Sektoren 15320-15327 auÃerhalb der Partition auf de_DE.UTF-8 zu schreiben.
*** Error in `/usr/sbin/gpartedbin': malloc(): smallbin double linked list corrupted: 0x0000000001d85250 ***
Aborted (core dumped)

Maybe I can provide the core dump later on.
When I add a "LANG=C_ALL" in front of the "kdesudo ..." it does not crash.

Skyman (sskyman) wrote :

Forgot: Apport didn't start automatically so I had to report manually.

Phillip Susi (psusi) wrote :

Are you able to reproduce this crash?

Changed in gparted (Ubuntu):
status: Incomplete → Confirmed
Skyman (sskyman) wrote :

@Phillip Susi: Yes, I can reproduce the crash.

Phillip Susi (psusi) wrote :

Excellent, I think this is the same issue that has been seen before, and there were one or two upstream patches that may fix it. I just need to remember what they were and hopefully you can test and verify they fix it and we can get it released into 14.04.

Curtis Gedak (gedakc) wrote :

@Phillip, this report sounds very similar to the following upstream report.

GParted crashes resizing fat16 file system
https://bugzilla.gnome.org/show_bug.cgi?id=735669

Mike Fleetwood posted a libparted patch to address the issue.
https://bugzilla.gnome.org/show_bug.cgi?id=735669#c15

Perhaps this is the upstream patch you are referring too.

Skyman (sskyman) wrote :

Seems to be related or a duplicate of:
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/1325708
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/1313600

Reproduced the problem with Kubuntu vivid daily 20150324 amd64 on Virtualbox.
Apport report and core dump from vm are attached.

Skyman (sskyman) wrote :
Curtis Gedak (gedakc) wrote :

@Skyman,

If you want to test to see if Mike's patch fixes the problem, the easiest way is to try booting from the latest GParted Live 0.22.0-1.
http://gparted.org/livecd.php

The GParted Live image contains a custom parted/libparted that includes Mike's patch.

Skyman (sskyman) wrote :

@Curtis: Problem does not appear with gparted-live-0.22.0-1-i586, so it seems the patch fixed the problem.
Thank you both for your help!

Phillip Susi (psusi) wrote :

Thanks Curtis, those are exactly the ones I was trying to remember. I'll try to cherry pick them to the gparted release in 14.04 and get a test build in my PPA and if Skyman can verify that using the one version breaks, and using the patched version doesn't, then I can get it SRU'ed into 14.04. Sorry if you haven't seen much activity from me lately; I've been *extremely* busy at work lately.

Curtis Gedak (gedakc) wrote :

No worries Phillip. We all get busy from time to time. :-)

Steps to reproduce the crash are included in the upstream bug report. 'Still it is always good to have the original reporter confirm if the problem is resolved.
https://bugzilla.gnome.org/show_bug.cgi?id=735669#c4

If it helps to get the patches accepted, these patches have already been included in some other GNU/Linux distributions, such as Fedora and Arch Linux.

Amr Ibrahim (amribrahim1987) wrote :

Any updates on this?

jamesbad000 (jamesbad000-1) wrote :

got the same after trying to resize or just check a fat32
distrib: Ubuntu 14.04.4 LTS
kernel: 3.13.0-83-generic x86_64
pkg : gparted 0.18.0-1 amd64

kdesudo gparted
...
libparted : 2.3
...
*** Error in `/usr/sbin/gpartedbin': malloc(): smallbin double linked list corrupted: 0x0000000001c952d0 ***
Aborted (core dumped)

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

Other bug subscribers

Remote bug watches

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