gparted crashes on scan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gparted (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
a disk attached has as corrupt partition table.
When Gparted is started it complains about it and falls back to "a copy" but then later it shows that libparted has a bug.
When running from a terminal, this is the output:
(gpartedbin:23707): GLib-CRITICAL **: Source ID 750 was not found when attempting to remove it
Invalid argument during seek for read on /dev/sdc
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Backtrace has 9 calls on stack:
9: /lib/x86_
8: /lib/x86_
7: /lib/x86_
6: gpartedbin() [0x4701e9]
5: gpartedbin() [0x4792d9]
4: /usr/lib/
3: /lib/x86_
2: /lib/x86_
1: /lib/x86_
Assertion (last_usable <= disk->dev->length) at ../../.
Aborted (core dumped)
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gparted 0.18.0-1
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
Date: Sat May 10 22:00:53 2014
InstallationDate: Installed on 2013-08-02 (281 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64+mac (20130424)
SourcePackage: gparted
SystemImageInfo: Error: [Errno 2] No such file or directory: 'system-image-cli'
UpgradeStatus: Upgraded to trusty on 2014-02-12 (86 days ago)
I found it is a bug in parted. ftp.gnu. org/gnu/ parted/ parted- 3.1.tar. xz attempted_ completion_ function = (CPPFunction*) complete_function; attempted_ completion_ function = (rl_completion_ func_t* ) complete_function;
It is fixed in the latest version of parted, which can be found here:
http://
I needed libuuid1
and libdevmapper-dev to compile and change the source code:
parted/ui.c from:
rl_
to
rl_
to fix compiling.