[Parted-maintainers] Bug#819488: gparted crash with a libparted backtrace

Mattia Rizzolo mattia at debian.org
Mon Apr 11 18:42:25 BST 2016


control: reassign -1 src:parted 3.2-15

On Mon, Apr 11, 2016 at 11:06:14AM -0600, Curtis Gedak wrote:
> Would you be able to provide the output from the following two commands?

sure thing :)

>     sudo fdisk -l -u

mattia at chase ~ % sudo fdisk -l -u
[sudo] password for mattia: 
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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: 0xbfbc6f0d

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1  *          2046 1953523711 1953521666 931.5G  5 Extended
/dev/sda5             2048  999999487  999997440 476.9G 83 Linux
/dev/sda6       1873524736 1933524991   60000256  28.6G 83 Linux
/dev/sda7       1933524992 1953523711   19998720   9.5G 82 Linux swap / Solaris

Partition 1 does not start on physical sector boundary.




Disk /dev/mapper/home: 476.9 GiB, 511996592128 bytes, 999993344 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


>     sudo parted /path-to-your-device unit s print

mattia at chase ~ % sudo parted /dev/sda unit s print
Backtrace has 15 calls on stack:
  15: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [0x7f79c46fbae4]
  14: /lib/x86_64-linux-gnu/libparted.so.2(+0x2009f) [0x7f79c470f09f]
  13: /lib/x86_64-linux-gnu/libparted.so.2(+0x114fa) [0x7f79c47004fa]
  12: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_add_partition+0x25f) [0x7f79c4700def]
  11: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f98f) [0x7f79c470e98f]
  10: /lib/x86_64-linux-gnu/libparted.so.2(+0x1fa20) [0x7f79c470ea20]
  9: /lib/x86_64-linux-gnu/libparted.so.2(+0x1fa20) [0x7f79c470ea20]
  8: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f9c9) [0x7f79c470e9c9]
  7: /lib/x86_64-linux-gnu/libparted.so.2(+0x209b5) [0x7f79c470f9b5]
  6: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_new+0x48) [0x7f79c4700a18]
  5: parted(+0x7343) [0x56338d485343]
  4: parted(non_interactive_mode+0x92) [0x56338d48b102]
  3: parted(main+0x1238) [0x56338d484028]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f79c3ef7610]
  1: parted(_start+0x29) [0x56338d4841d9]


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

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

	http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

	http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (3.2)
along with the error message below, the output of

	parted DEVICE unit co print unit s print

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

Assertion (metadata_length > 0) at ../../../libparted/labels/dos.c:2313 in function add_logical_part_metadata() failed.

[1]    17350 abort      sudo parted /dev/sda unit s print
134 mattia at chase ~ %

(134 is the return code)

> I expect that latter command to fail if the problem is indeed in the
> libparted library.

So, it seems it is :)

Reassigning to src:parted.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  http://mapreri.org                              : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/parted-maintainers/attachments/20160411/bb9c3441/attachment-0001.sig>


More information about the Parted-maintainers mailing list