trying to name a partition on a device with no partition table crashes

Bug #1817267 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
parted (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ rm /tmp/blob; truncate -s 1G /tmp/blob; parted /tmp/blob name 1 name
WARNING: You are not superuser. Watch out for permissions.
Error: /tmp/blob: unrecognised disk label
Backtrace has 8 calls on stack:
  8: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x45) [0x7fad9a9d56e5]
  7: /lib/x86_64-linux-gnu/libparted.so.2(+0xff01) [0x7fad9a9d9f01]
  6: parted(command_line_get_partition+0x49) [0x55deb6909099]
  5: parted(+0x7fa6) [0x55deb6904fa6]
  4: parted(non_interactive_mode+0xa2) [0x55deb690a532]
  3: parted(main+0x121e) [0x55deb69032be]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7fad9a187b97]
  1: parted(_start+0x2a) [0x55deb690348a]

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 (disk != NULL) at ../../libparted/disk.c:1598 in function ped_disk_get_partition() failed.

Aborted (core dumped)

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.