Memory corruption when runnning fs-check on a fat32-formatted partition

Bug #1361594 reported by Alexander Hansen
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Trusty by Phillip Susi

Bug Description

What you expected to happen:
I expected a sucessfull filesystem check of the fat32-partition.

What happened instead:
This:

$ sudo gparted
======================
libparted : 2.3
======================

*** Error in `/usr/sbin/gpartedbin': malloc(): memory corruption: 0x0000000001129ea0 ***
Aborted (core dumped)

--
I started the application, chose the partition I wanted to check for errors and then started the check - and this happens, every time.

--- More info
$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04

$ apt-cache policy gparted
gparted:
  Installed: 0.18.0-1
  Candidate: 0.18.0-1
  Version table:
 *** 0.18.0-1 0
        500 http://no.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

summary: - Memory corruption when runnning fs-check on a fat32-formatted
- thumbdrive
+ Memory corruption when runnning fs-check on a fat32-formatted partition
tags: added: libparted
Revision history for this message
Alexander Hansen (alexander-l-hansen) wrote :

This is possibly bug 733655 at gnome's bugtracker ( https://bugzilla.gnome.org/show_bug.cgi?id=733655 )

Revision history for this message
Curtis Gedak (gedakc) wrote :

Would you be able to try the latest version of GParted (currently 0.19.1). One way to do this is by booting from media containing GParted Live. See http://gparted.org/livecd.php

Revision history for this message
Alexander Hansen (alexander-l-hansen) wrote :

I will test this tomorrow with the gparted live ISO, thanks for your feedback! :-)

Revision history for this message
Curtis Gedak (gedakc) wrote :

Alexander, I believe the problem is with the underlying libparted library. The problem exists in Ubuntu 14.04 with libparted 2.3-19ubuntu1, and also with our latest GParted Live 0.19.1-1 with libparted0debian1:i386 2.3-20.

As such, there is no need to perform the test I requested.

Instead I have requested an update GParted Live with libparted-3.2+ from our Live Image maintainer. It would be good to test once that is available.

Revision history for this message
Curtis Gedak (gedakc) wrote :

Alexander, would you be able to try the latest GParted Live 0.19.1-4?

This newest Live image include gparted 0.19.1 linked with libparted 3.2-5. In my testing of fat32 resizes, all completed successfully with this newer libparted version.

Revision history for this message
Alexander Hansen (alexander-l-hansen) wrote :

I'm able to test the latest gparted live 0.19.1-4. Do you have a download url ready? :-)

Revision history for this message
Alexander Hansen (alexander-l-hansen) wrote :

Doh, must be the lack of coffee - downloading from the official site now :)

Revision history for this message
Alexander Hansen (alexander-l-hansen) wrote :

The latest gparted live 0.19.1-4 works great!
Success when doing fs-check :)

Revision history for this message
Curtis Gedak (gedakc) wrote :

Thanks Alexander for reporting back that GParted with libparted 3.2 successfully works with fat32.

With the GParted option "Partion -> Check", GParted first runs a file system check and then it will perform a file system resize to maximum to ensure the file sytem uses the entire partition.

It appears that the fat32 file system resize fails with some versions of libparted, specifically the version currently employed in Ubuntu 14.04.

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
Amr Ibrahim (amribrahim1987) wrote :

Any updates on this?

Revision history for this message
riveravaldez (riveravaldezmail) wrote :

The problem appears in this version:

$ apt-cache policy gparted
gparted:
  Instalados: 0.18.0-1
  Candidato: 0.18.0-1
  Tabla de versión:
 *** 0.18.0-1 0

And DOESN'T appear in this (older) one:

$ apt-cache policy gparted
gparted:
  Installed: 0.11.0-2ubuntu0.1
  Candidate: 0.11.0-2ubuntu0.1
  Version table:
 *** 0.11.0-2ubuntu0.1 0

Just in case this info is useful.

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

Other bug subscribers

Remote bug watches

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