[Bug 1817267] [NEW] trying to name a partition on a device with no partition table crashes

Michael Hudson-Doyle mwhudsonlp at fastmail.fm
Fri Feb 22 08:17:52 UTC 2019


Public bug reported:

$ 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)

** Affects: parted (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to parted in Ubuntu.
https://bugs.launchpad.net/bugs/1817267

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

Status in parted package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1817267/+subscriptions



More information about the foundations-bugs mailing list