GNU bug report logs - #29937
You found a bug in GNU Parted! Don't panic!

Previous Next

Package: parted;

Reported by: Vincent Tompkins <tompkiv165 <at> gmail.com>

Date: Mon, 1 Jan 2018 23:57:01 UTC

Severity: normal

To reply to this bug, email your comments to 29937 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#29937; Package parted. (Mon, 01 Jan 2018 23:57:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vincent Tompkins <tompkiv165 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Mon, 01 Jan 2018 23:57:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vincent Tompkins <tompkiv165 <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: You found a bug in GNU Parted! Don't panic!
Date: Mon, 1 Jan 2018 16:50:25 -0500
[Message part 1 (text/plain, inline)]
~]$ sudo parted -l
Backtrace has 14 calls on stack:
  14: /lib64/libparted.so.2(ped_assert+0x45) [0x7fee1c3ae995]
  13: /lib64/libparted.so.2(+0x241db) [0x7fee1c3c51db]
  12: /lib64/libparted.so.2(+0x1245a) [0x7fee1c3b345a]
  11: /lib64/libparted.so.2(ped_disk_add_partition+0x2d3) [0x7fee1c3b3dc3]
  10: /lib64/libparted.so.2(+0x23a58) [0x7fee1c3c4a58]
  9: /lib64/libparted.so.2(+0x23bc0) [0x7fee1c3c4bc0]
  8: /lib64/libparted.so.2(+0x23c59) [0x7fee1c3c4c59]
  7: /lib64/libparted.so.2(+0x24935) [0x7fee1c3c5935]
  6: /lib64/libparted.so.2(ped_disk_new+0x47) [0x7fee1c3b3967]
  5: parted(+0x7784) [0x55ca2ba76784]
  4: parted(+0x6efb) [0x55ca2ba75efb]
  3: parted(main+0x132b) [0x55ca2ba753bb]
  2: /lib64/libc.so.6(__libc_start_main+0xea) [0x7fee1bb6600a]
  1: parted(_start+0x2a) [0x55ca2ba7547a]


You found a bug in GNU Parted! Here's what you have to do:

Don't panic!
Your report should contain the version of this release (3.2)

and the following history of commands you entered.
Also include any additional information about your setup you
consider important.

Assertion (metadata_length > 0) at dos.c:2305 in function
add_logical_part_metadata() failed.

Aborted
I tried running GParted when libparted reported an error.
Then I went to parted to see what errors it may report.

~]$ sudo lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0  1.8T  0 disk
├─sda1            8:1    0   60G  0 part /C:
├─sda2            8:2    0   60G  0 part
├─sda3            8:3    0    1G  0 part /boot
├─sda4            8:4    0    1K  0 part
├─sda5            8:5    0   70G  0 part
│ └─fedora-root 253:0    0   70G  0 lvm  /
└─sda6            8:6    0  1.6T  0 part /D:
sr0              11:0    1 1024M  0 rom

~]# sudo fdisk /dev/sda -l
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 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: dos
Disk identifier: 0xdb7d6b3c

Device     Boot     Start        End    Sectors  Size Id Type
/dev/sda1  *         2048  125831167  125829120   60G  7 HPFS/NTFS/exFAT
/dev/sda2       125831168  251660287  125829120   60G  7 HPFS/NTFS/exFAT
/dev/sda3       251660288  253757439    2097152    1G 83 Linux
/dev/sda4       253757440 3907028991 3653271552  1.7T  5 Extended
/dev/sda5       253761536  400570367  146808832   70G 8e Linux LVM
/dev/sda6       400570368 3907028991 3506458624  1.6T  7 HPFS/NTFS/exFAT
[Message part 2 (text/html, inline)]

Information forwarded to bug-parted <at> gnu.org:
bug#29937; Package parted. (Tue, 02 Jan 2018 17:28:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: bug-parted <at> gnu.org
Subject: Re: bug#29937: You found a bug in GNU Parted! Don't panic!
Date: Tue, 2 Jan 2018 09:27:39 -0800
On Mon, Jan 01, 2018 at 04:50:25PM -0500, Vincent Tompkins wrote:
> ~]$ sudo parted -l
> Backtrace has 14 calls on stack:
>   14: /lib64/libparted.so.2(ped_assert+0x45) [0x7fee1c3ae995]
>   13: /lib64/libparted.so.2(+0x241db) [0x7fee1c3c51db]
>   12: /lib64/libparted.so.2(+0x1245a) [0x7fee1c3b345a]
>   11: /lib64/libparted.so.2(ped_disk_add_partition+0x2d3) [0x7fee1c3b3dc3]
>   10: /lib64/libparted.so.2(+0x23a58) [0x7fee1c3c4a58]
>   9: /lib64/libparted.so.2(+0x23bc0) [0x7fee1c3c4bc0]
>   8: /lib64/libparted.so.2(+0x23c59) [0x7fee1c3c4c59]
>   7: /lib64/libparted.so.2(+0x24935) [0x7fee1c3c5935]
>   6: /lib64/libparted.so.2(ped_disk_new+0x47) [0x7fee1c3b3967]
>   5: parted(+0x7784) [0x55ca2ba76784]
>   4: parted(+0x6efb) [0x55ca2ba75efb]
>   3: parted(main+0x132b) [0x55ca2ba753bb]
>   2: /lib64/libc.so.6(__libc_start_main+0xea) [0x7fee1bb6600a]
>   1: parted(_start+0x2a) [0x55ca2ba7547a]
> 
> 
> You found a bug in GNU Parted! Here's what you have to do:
> 
> Don't panic!
> Your report should contain the version of this release (3.2)
> 
> and the following history of commands you entered.
> Also include any additional information about your setup you
> consider important.
> 
> Assertion (metadata_length > 0) at dos.c:2305 in function
> add_logical_part_metadata() failed.
> 
> Aborted
> I tried running GParted when libparted reported an error.
> Then I went to parted to see what errors it may report.
> 
> ~]$ sudo lsblk
> NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
> sda               8:0    0  1.8T  0 disk
> ├─sda1            8:1    0   60G  0 part /C:
> ├─sda2            8:2    0   60G  0 part
> ├─sda3            8:3    0    1G  0 part /boot
> ├─sda4            8:4    0    1K  0 part
> ├─sda5            8:5    0   70G  0 part
> │ └─fedora-root 253:0    0   70G  0 lvm  /
> └─sda6            8:6    0  1.6T  0 part /D:
> sr0              11:0    1 1024M  0 rom
> 
> ~]# sudo fdisk /dev/sda -l
> Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 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: dos
> Disk identifier: 0xdb7d6b3c
> 
> Device     Boot     Start        End    Sectors  Size Id Type
> /dev/sda1  *         2048  125831167  125829120   60G  7 HPFS/NTFS/exFAT
> /dev/sda2       125831168  251660287  125829120   60G  7 HPFS/NTFS/exFAT
> /dev/sda3       251660288  253757439    2097152    1G 83 Linux
> /dev/sda4       253757440 3907028991 3653271552  1.7T  5 Extended
> /dev/sda5       253761536  400570367  146808832   70G 8e Linux LVM
> /dev/sda6       400570368 3907028991 3506458624  1.6T  7 HPFS/NTFS/exFAT

This indicates that whatever created your partition layout didn't leave
enough metadata space for the extended partition. There is nothing we
can do for this.

-- 
Brian C. Lane (PST8PDT)




Information forwarded to bug-parted <at> gnu.org:
bug#29937; Package parted. (Wed, 14 Feb 2018 19:20:02 GMT) Full text and rfc822 format available.

Message #11 received at 29937 <at> debbugs.gnu.org (full text, mbox):

From: Phil Susi <psusi <at> ubuntu.com>
To: "Brian C. Lane" <bcl <at> redhat.com>, 29937 <at> debbugs.gnu.org
Subject: Re: bug#29937: You found a bug in GNU Parted! Don't panic!
Date: Wed, 14 Feb 2018 14:19:38 -0500
On 1/2/2018 12:27 PM, Brian C. Lane wrote:
> This indicates that whatever created your partition layout didn't leave
> enough metadata space for the extended partition. There is nothing we
> can do for this.

We *can* locate the EBR elsewhere like most other utilities do.  I just
haven't gotten around to that yet.  BTW Brian, replying just to the bug
email doesn't automatically forward the message to the original
submitter.  You either need to reply to nnnn-submitter@ for that, or
reply-to-all to include their email directly.





This bug report was last modified 7 years and 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.