gparted crashes when copying ntfs partition

Bug #1581314 reported by bewresu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

1) $ lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04

2) $ apt-cache policy gparted
gparted:
  Installed: 0.25.0-1
  Candidate: 0.25.0-1
  Version table:
 *** 0.25.0-1 500
        500 http://ph.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status

3) Copying ntfs partition from one disk to another disk should not crash Gparted.

4) Running sudo gparted from terminal to capture error messages. After the command ntfsclone has completed but before the dialog box indicates success, Gparted crashes with this error.

(gpartedbin:21478): glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: basic_string::_M_replace_aux

Trace/breakpoint trap (core dumped)

Checking after the crash, the partition seems to have been successfully copied, despite the crash. Does not crash when copying ext4.

...

UPDATE:
can confirm this also happens in Ubuntu 14.04

1) $ lsb_release -rd
Description: Ubuntu 14.04.4 LTS
Release: 14.04

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

A series messages like these also appear while gparted is running:

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

(gpartedbin:4207): GLib-CRITICAL **: Source ID 4197 was not found when attempting to remove it
...

And then finally after completion of ntfsclone the same error:

(gpartedbin:4207): glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: basic_string::_M_replace_aux

bewresu (bewresu)
description: updated
summary: - gparted on ubuntu 16.04 crashes after copying ntfs partition
+ gparted crashes after copying ntfs partition
summary: - gparted crashes after copying ntfs partition
+ gparted crashes when copying ntfs partition
bewresu (bewresu)
description: updated
description: updated
description: updated
Revision history for this message
Curtis Gedak (gedakc) wrote :

Would you be able to provide the output from the following three 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.

  sudo blkid

Phillip Susi (psusi)
Changed in gparted (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gparted (Ubuntu) because there has been no activity for 60 days.]

Changed in gparted (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Phil (zealophobic) wrote :

Major bugs like this should not automatically expire after 60 days.

Changed in gparted (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Phil (zealophobic) wrote :

I tried to copy an ntfs partition using gparted 0.25, using ubuntu 15.04.

My gparted output:

======================
libparted : 3.2
======================

(gpartedbin:2846): glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: basic_string::_M_replace_aux

Trace/breakpoint trap (core dumped)
$ apt-cache policy gparted
gparted:
  Installed: (none)
  Candidate: 0.19.0-3build1
  Version table:
     0.19.0-3build1 0
        500 http://us.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status

$ sudo fdisk -l -u
[output trimmed to just the disks involved.
copy was from /dev/sda5 to /dev/sde4]

Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 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
Disklabel type: dos
Disk identifier: [snip]

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 63 36200035 36199973 17.3G 7 HPFS/NTFS/exFAT
/dev/sda2 36200448 234440703 198240256 94.5G f W95 Ext'd (LBA)
/dev/sda5 36202496 234440703 198238208 94.5G 7 HPFS/NTFS/exFAT

Disk /dev/sde: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: [...]

Device Start End Sectors Size Type
/dev/sde1 34 262177 262144 128M Microsoft reserved
/dev/sde2 264192 7579594751 7579330560 3.5T Microsoft basic data
/dev/sde3 7579594752 7611598847 32004096 15.3G Linux swap
/dev/sde4 7611600896 7809839103 198238208 94.5G Microsoft basic data

Partition 1 does not start on physical sector boundary.

$ sudo parted /dev/sda5 unit s print
Model: Unknown (unknown)
Disk /dev/sda5: 198238208s
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number Start End Size File system Flags
 1 0s 198238207s 198238208s ntfs

$ sudo parted /dev/sde4 unit s print
Model: Unknown (unknown)
Disk /dev/sde4: 198238208s
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags:

Number Start End Size File system Flags
 1 0s 198238207s 198238208s ntfs

$ sudo blkid
[reports them both as type ntfs, but I don't post UUIDs due to paranoia]

Revision history for this message
Phil (zealophobic) wrote :

My apt-cache output above reports nothing useful, as I had to compile gparted by hand to get version 0.25. The most recent version available via package manager is 0.19. The man page for gparted does not say any way to get a version number, so I cannot report its version number.

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

15.04 has been end of life and unsupported for coming up on two years now. Out of curiosity, are you using a non English locale? The error may be related to non English character sets.

Revision history for this message
Hajin Jang (joveler) wrote :

Hello, I am experiencing a similar issue.
I resize/moved NTFS partitions with gparted 4 times, and gparted crashed 3 times.

[+] Environment

Distribution : Ubuntu 18.04 Server with MATE Desktop
gparted version : bionic-updates,now 0.30.0-3ubuntu2 amd64
locale : en-US.UTF8

[+] Output from terminal

Unit -.mount does not exist, proceeding anyway.
======================
libparted : 3.2
======================

(gpartedbin:30179): glibmm-ERROR **: 21:44:04.453:
unhandled exception (type std::exception) in signal handler:
what: basic_string::_M_replace_aux

Trace/breakpoint trap (core dumped)

[+] parted, fdisk, blkid logs

Attached logs as text files.

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.