GNOME Bugzilla – Bug 696810
segfault resizing ext4 partition with gparted-0.15.0-1 iso
Last modified: 2013-04-29 17:02:51 UTC
downloaded the gparted 0.15.0-1 iso, booted, resized some partitions, clicked apply, left. Came back and gparted isn't running. dmesg says: [ 2618.502567] gpartedbin[2839]: segfault at 62b8 ip b69e4e2c sp bf890ea8 error 4 in libc-2.13.so[b6973000+147000] So it crashed, apparently resizing an ext4 partition. Don't know if that is enough to figure out a backtrace (if not, the iso should include crash catching, symbol decoding and upload)
Can you reproduce the crash? If so would you please describe the steps you used? Also would you be able to provide the output from the following two commands? sudo fdisk -l -u where one of the options is a lower case "L" and not the number one. sudo parted /path-to-your-device unit s print where /path-to-your-device is something like /dev/sda.
I haven't tried to reproduce yet, I wanted to check whether the data was intact first, I restarted gparted and it indicated a problem with the partition (little ! icon), I chose the fix option and rebooted, data seems to be ok still. # fdisk -l -u Disk /dev/sda: 250.1 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00050e21 Device Boot Start End Blocks Id System /dev/sda1 63 128519 64228+ 83 Linux /dev/sda2 * 128520 29431079 14651280 7 HPFS/NTFS/exFAT /dev/sda3 29431080 32435234 1502077+ 82 Linux swap / Solaris /dev/sda4 32435235 488397167 227980966+ 83 Linux # parted /dev/sda unit s print Model: ATA WDC WD2500BEVE-0 (scsi) Disk /dev/sda: 488397168s Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 63s 128519s 128457s primary ext2 2 128520s 29431079s 29302560s primary ntfs boot 3 29431080s 32435234s 3004155s primary linux-swap(v1) 4 32435235s 488397167s 455961933s primary ext4
I noticed this in the e2fsprogs changelog: * Fixed a potential segfault in e2fsck when there is an I/O error while reading the superblock. That was in the changelog for e2fsprogs-1.42.6. GParted Live is running e2fsprogs-1.42.5 I believe. So that might be the cause.
Thank you Chris for the additional information. So far I have not been able to reproduce the problem. And thank you Patrick for the information on a potential segfault problem in es2fsck. At the moment I am still not sure what caused the crash, It is interesting to note that the segfault occurred in libc, however we do not know what series of events led to this end result.
We have had at least 3 reports of crashes with GParted 0.15.0. As such I have added a warning to the GParted download page and news page while we investigate this problem. See also Bug #697727 - Segfault in livecd Gparted v 0.15.0-3 when copying partition Chris, if the problem occurs again, please attach the core dump file to this report. We need to reproduce the problem to help isolate the cause of the crash.
Chris, Do you recall if you resized the left-hand side, or the right-hand side of the partition? A resize of the left-hand side would result in a combination of move left and resize operations.
Sorry I have no idea, I set multiple operations away and came back a few hours later to find that it had failed.
No worries Chris. I strongly suspect that the problem you encountered is the one reported in: Bug #697727 - Segfault in GParted 0.15.0 when copying partition As such I will mark this bug as a duplicate of that one. *** This bug has been marked as a duplicate of bug 697727 ***