[Parted-maintainers] Bug#981692: parted: crash when printing device partitions

Eric Valette eric.valette at free.fr
Tue Feb 2 22:23:47 GMT 2021


Package: parted
Version: 3.4-1
Severity: important

parted /dev/sdb
GNU Parted 3.4
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) help                                                             
  align-check TYPE N                       check partition N for TYPE(min|opt) alignment
  help [COMMAND]                           print general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, available devices, free space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and copyright information of GNU Parted
(parted) print                                                            
Backtrace has 14 calls on stack:
  14: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x45) [0x7f42e4569c85]
  13: /lib/x86_64-linux-gnu/libparted.so.2(+0x267e7) [0x7f42e45817e7]
  12: /lib/x86_64-linux-gnu/libparted.so.2(+0x1369a) [0x7f42e456e69a]
  11: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_add_partition+0x1bc) [0x7f42e456ef3c]
  10: /lib/x86_64-linux-gnu/libparted.so.2(+0x27295) [0x7f42e4582295]
  9: /lib/x86_64-linux-gnu/libparted.so.2(+0x27447) [0x7f42e4582447]
  8: /lib/x86_64-linux-gnu/libparted.so.2(+0x272d9) [0x7f42e45822d9]
  7: /lib/x86_64-linux-gnu/libparted.so.2(+0x27501) [0x7f42e4582501]
  6: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_new+0x48) [0x7f42e456e9f8]
  5: parted(+0x8b29) [0x5618f9641b29]
  4: parted(interactive_mode+0x187) [0x5618f96473a7]
  3: parted(main+0x1376) [0x5618f963fdd6]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f42e4336d0a]
  1: parted(_start+0x2a) [0x5618f963fe5a]


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.4)
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:2359 in function add_logical_part_metadata() failed.

Aborted
root at tri-yann4:~# parted /dev/sdb unit co print unit s print
Backtrace has 14 calls on stack:
  14: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x45) [0x7efefbf72c85]
  13: /lib/x86_64-linux-gnu/libparted.so.2(+0x267e7) [0x7efefbf8a7e7]
  12: /lib/x86_64-linux-gnu/libparted.so.2(+0x1369a) [0x7efefbf7769a]
  11: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_add_partition+0x1bc) [0x7efefbf77f3c]
  10: /lib/x86_64-linux-gnu/libparted.so.2(+0x27295) [0x7efefbf8b295]
  9: /lib/x86_64-linux-gnu/libparted.so.2(+0x27447) [0x7efefbf8b447]
  8: /lib/x86_64-linux-gnu/libparted.so.2(+0x272d9) [0x7efefbf8b2d9]
  7: /lib/x86_64-linux-gnu/libparted.so.2(+0x27501) [0x7efefbf8b501]
  6: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_new+0x48) [0x7efefbf779f8]
  5: parted(+0x8b29) [0x55e3bf3dab29]
  4: parted(non_interactive_mode+0xb8) [0x55e3bf3e0518]
  3: parted(main+0x1265) [0x55e3bf3d8cc5]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7efefbd3fd0a]
  1: parted(_start+0x2a) [0x55e3bf3d8e5a]


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.4)
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:2359 in function add_logical_part_metadata() failed.

Aborted



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.12 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF8, LC_CTYPE=fr_FR.UTF8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages parted depends on:
ii  libc6         2.31-9
ii  libparted2    3.4-1
ii  libreadline8  8.1-1
ii  libtinfo6     6.2+20201114-2

parted recommends no packages.

Versions of packages parted suggests:
pn  parted-doc  <none>

-- no debconf information



More information about the Parted-maintainers mailing list