#776421 parted: Segfault on align-check

Package:
parted
Source:
parted
Description:
disk partition manipulator
Submitter:
Lucio Crusca
Date:
2015-01-27 21:33:07 UTC
Severity:
normal
#776421#5
Date:
2015-01-27 21:24:42 UTC
From:
To:
While using parted I got the following SIGSEGV report:

(parted) align-check min 1

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.
[...]

# parted /dev/vda unit co print unit s print

Model: Virtio Block Device (virtblk)
Disk /dev/vda: 1136GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  1136GB  1136GB  primary               boot, lvm

Model: Virtio Block Device (virtblk)
Disk /dev/vda: 2218786816s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start  End          Size         Type     File system  Flags
 1      2048s  2218750000s  2218747953s  primary               boot, lvm


and the following history of commands I entered:

help
select /dev/vda
resize
resizepart
1
max
print devices
resizepart
1
1136GB
align-check min 1

Error: SEGV_MAPERR (Address not mapped to object)
Backtrace has 11 calls on stack:
  11: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [0x7f64ba92d644]
  10: parted() [0x40a934]
  9: /lib/x86_64-linux-gnu/libc.so.6(+0x35180) [0x7f64ba125180]
  8: /lib/x86_64-linux-gnu/libparted.so.2(+0x157a8) [0x7f64ba9357a8]
  7: /lib/x86_64-linux-gnu/libparted.so.2(ped_device_get_minimum_alignment+0x1d) [0x7f64ba92e11d]
  6: parted() [0x4083d5]
  5: parted() [0x4084e4]
  4: parted(interactive_mode+0xff) [0x40ca2f]
  3: parted(main+0x119f) [0x405f6f]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f64ba111b45]
  1: parted() [0x405fc7]


Assertion (0) at ../../parted/ui.c:356 in function sa_sigsegv_handler() failed.