bug#26393: Found a bug

Joshua Nelson <[email protected]>
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <[email protected]>
Hello, sorry to bother you.
I ran into a bug in parted this morning when trying to label an
encrypted partition. Does parted support LUKS partitions?
Thanks for your time.
Details:

version: 3.2
error message: *Assertion (disk != NULL) at ../../libparted/disk.c:1598
in function ped_disk_get_partition() failed.

*backtrace:
*(parted) name Encrypted
Error: /dev/sda3: unrecognised disk label
Error: Expecting a partition number.
(parted) name 3 Encrypted                                                
Error: /dev/sda3: unrecognised disk label
Backtrace has 8 calls on stack:                                          
  8: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [0x7fdbcc169644]
  7: /lib/x86_64-linux-gnu/libparted.so.2(+0x11d65) [0x7fdbcc16dd65]
  6: parted(command_line_get_partition+0x4d) [0x40b67d]
  5: parted() [0x4078f2]
  4: parted(interactive_mode+0xff) [0x40ca2f]
  3: parted(main+0x119f) [0x405f6f]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
[0x7fdbcb95eb45]
  1: parted() [0x405fc7]
*
output of command `parted` told me to run:
*joshua@Debian:~$ sudo parted /dev/sda unit co print unit s print
Model: ATA ST500LT012-9WS14 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system     Flags
 1      1048kB  100GB   100GB   extended
 5      1049kB  25.0GB  25.0GB  logical   ext4
 6      25.0GB  27.0GB  1999MB  logical   linux-swap(v1)
 7      27.0GB  29.0GB  1999MB  logical   fat32           boot, esp
 4      100GB   247GB   147GB   primary   ext4
 2      247GB   326GB   78.6GB  primary   ext4
 3      326GB   327GB   1000MB  primary

Model: ATA ST500LT012-9WS14 (scsi)
Disk /dev/sda: 976773168s
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start       End         Size        Type      File system     Flags
 1      2046s       195315711s  195313666s  extended
 5      2048s       48828415s   48826368s   logical   ext4
 6      48830464s   52733951s   3903488s    logical   linux-swap(v1)
 7      52736000s   56639487s   3903488s    logical   fat32          
boot, esp
 4      195315712s  482529279s  287213568s  primary   ext4
 2      482529280s  636129279s  153600000s  primary   ext4
 3      636131328s  638084452s  1953125s    primary

joshua@Debian:~$ sudo parted /dev/sda3 unit co print unit s print
Error: /dev/sda3: unrecognised disk label
Model: Unknown (unknown)                                                 
Disk /dev/sda3: 1000MB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:
Error: /dev/sda3: unrecognised disk label
Model: Unknown (unknown)                                                 
Disk /dev/sda3: 1953125s
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:
*

-- 

--This message was sent with a PGP signature. For more information about
PGP and encryption, visit https://gnupg.org.--
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJY51xGAAoJEOZVgj2NixCI44cP/1W9r4QryueKgtxXFQW69AX9
6NFPVDgE9wCLXb8vTYJm7Giqr9cFfNa5PsSFTuv0STdWVrRzLEcqYyi+0eOCbp3u
XrOKnsoRUo2XgjaiCwBjsgYdx0VzHozw3VxPCvbDEfYMnbYig4HMkS4W0/+Y0hON
1hdRMhnJLxVCR6hE/caFJUSHo5OAFACt1oSHtgJyG1gi4Q32CvUi88BcsG0BM6r+
yuX45LvnOFF1Ugrz92SBw9HduBQHZuR/dPS3Pfj8kqiwcwKS9xfo2U6dUI7R/1fQ
2/b2JEuJ4VeuWMEhQIvvLoq1lb7YCUwDp12KqQ60LBWzWKhIY6njXb1RwCRGgGF7
TcRgeyQGVMzSSat8IONT9QcnJZrRCijl1Ge7jDBpC/rhVRx/1ebXgr7QIzJ3D/jk
3ecX+BszM8UQc/NKyKRUfp8LOw7djLqBOuHuUqSUJZZ249c5r+rKXK1Lqs7m0BS8
WWoLEN2a5Zq++dCGEj3Y46JG4uIyM5Tz2GIATF8Y2bd/xuyD+Mp4COTraVOBy/AL
SVrhyOhwZxEK9HNRDGK/LblPX7/tGsTz6e+U1xaaL28tbf/ZerSJnTddYFcpnWXN
3813gDn4rjkUO+n4gagnQbC+o54alRR8mtmqOwwMH4eEirrNKbue2aXh4DhPwjMc
IextnNCelDUk1Ct/no6V
=ntgp
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.