Subject: bug#28919: bug report v3.2 Assertion (max_size > 0) at ../../libparted/cs/constraint.c:71 in function ped_constraint_init() failed.

From: Rootless <[email-masked]>
Date: Fri, 20 Oct 2017 17:05:54 -0400

GNU Parted 3.2
Using /dev/cciss/c1d1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c1d1: 587GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name  Flags
 1      1049kB  587GB  587GB  ext4

(parted) print device
Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c1d1: 587GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name  Flags
 1      1049kB  587GB  587GB  ext4

  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 devices
/dev/cciss/c1d1 (587GB)
/dev/cciss/c1d0 (147GB)
/dev/cciss/c0d0 (881GB)
(parted) select /dev/cciss/c0d0
Backtrace has 14 calls on stack:
  14: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x45) [0x7f0e10267385]
  13: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_init+0xd0)
[0x7f0e1026def0]
  12: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_new+0x56)
[0x7f0e1026dfa6]
  11: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_exact+0xa8)
[0x7f0e1026e868]
  10: /lib/x86_64-linux-gnu/libparted.so.2(+0x26617) [0x7f0e10282617]
  9: /lib/x86_64-linux-gnu/libparted.so.2(+0x266e6) [0x7f0e102826e6]
  8: /lib/x86_64-linux-gnu/libparted.so.2(+0xfdba) [0x7f0e1026bdba]
  7: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_delete_all+0x62)
[0x7f0e1026c972]
  6: /lib/x86_64-linux-gnu/libparted.so.2(+0x259d9) [0x7f0e102819d9]
  5: parted(+0x6afb) [0x5646c9ee6afb]
  4: parted(interactive_mode+0x120) [0x5646c9eed0b0]
  3: parted(main+0x142b) [0x5646c9ee61eb]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)
[0x7f0e0fa423f1]
  1: parted(_start+0x2a) [0x5646c9ee624a]

You found a bug in GNU Parted! Here's what you have to do:

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

~# parted /dev/cciss/c0d0 unit co print unit s print
Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d0: 881GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start  End  Size  File system  Name  Flags

Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d0: 1720099632s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start  End  Size  File system  Name  Flags

and the following history of commands you entered (see above).

Also include any additional information about your setup you
consider important. (let me know if you have any questions)

Assertion (max_size > 0) at ../../libparted/cs/constraint.c:71 in function
ped_constraint_init() failed.

Thanks,

James

-- 
James Fowler/方志宇
[email-masked]
[email-masked]
Public Key:
https://sites.google.com/site/poorpermissions/pk/fowler_publickey?attredirects=0&d=1
<http://rootless.googlepages.com/fowler_publickey>