trying to name a partition on a device with no partition table crashes
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_
7: /lib/x86_
6: parted(
5: parted(+0x7fa6) [0x55deb6904fa6]
4: parted(
3: parted(main+0x121e) [0x55deb69032be]
2: /lib/x86_
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://
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://
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
Aborted (core dumped)