parted crashes on lvm, on a dasd drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Debian |
Fix Released
|
Unknown
|
|||
debian-installer (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
parted (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
xnox@devac03:~$ lsdasd
Bus-ID Status Name Device Type BlkSz Size Blocks
=======
0.0.0200 active dasda 94:0 ECKD 4096 7042MB 1802880
0.0.0201 active dasdb 94:4 ECKD 4096 42258MB 10818180
0.0.0202 active dasdc 94:8 ECKD 4096 42258MB 10818180
# pvcreate /dev/dasdc1
allocation/
Falling back to native LVM signature detection.
Physical volume "/dev/dasdc1" successfully created
# vgcreate new /dev/dasdc1
Volume group "new" successfully created
# lvcreate -L 2000M new
allocation/
Falling back to native LVM signature detection.
Logical volume "lvol0" created.
# gdb parted
(gdb) run /dev/mapper/
Starting program: /sbin/parted /dev/mapper/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/s390x-
GNU Parted 3.2
Using /dev/mapper/
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Program received signal SIGFPE, Arithmetic exception.
vtoc_set_freespace (f4=<optimized out>, f5=0x2aa0003c0e0, f7=<optimized out>, ch=<optimized out>,
verbose=0, start=2, stop=4294967295, cyl=60101, trk=0) at ../../.
1321 ../../.
(gdb) bt
#0 vtoc_set_freespace (f4=<optimized out>, f5=0x2aa0003c0e0, f7=<optimized out>,
ch=<optimized out>, verbose=0, start=2, stop=4294967295, cyl=60101, trk=0)
at ../../.
#1 0x000003fffdea1b20 in fdasd_check_volume (anc=0x3ffffffeee0, fd=<optimized out>)
at ../../.
#2 0x000003fffde9f6c2 in dasd_probe (dev=0x2aa00030fb0) at ../../.
#3 0x000003fffde8fb5e in ped_disk_probe (dev=0x2aa00030fb0) at ../../libparted
#4 0x000003fffde9240c in ped_disk_new (dev=0x2aa00030fb0) at ../../libparted
#5 0x000002aa00008c28 in do_print (dev=0x3fffffff428, diskp=0x3ffffff
at ../../parted/
#6 0x000002aa0000e810 in interactive_mode (dev=0x3fffffff428, disk=0x3fffffff430,
cmd_
#7 0x000002aa00007020 in main (argc=0, argv=0x3fffffff688) at ../../parted/
tags: | added: patch |
Changed in s390-tools (Ubuntu): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
affects: | s390-tools (Ubuntu) → debian-installer (Ubuntu) |
Changed in debian-installer (Ubuntu): | |
assignee: | Dimitri John Ledkov (xnox) → nobody |
Changed in debian: | |
status: | Unknown → Confirmed |
tags: |
added: targetmilestone-inin1604 removed: targetmilestone-inin--- |
Changed in debian: | |
status: | Confirmed → Fix Released |
vtoc_set_freespace (f4=<optimized out>, f5=0x2aa0003c0e0, f7=<optimized out>, ./libparted/ labels/ vtoc.c: 1321
ch=<optimized out>, verbose=0, start=2, stop=4294967295, cyl=60101, trk=0)
at ../../.
vtoc_set_freespace is called with trk=0, yet
1321: y = (u_int16_t) ((stop - start + 1) / trk);
tries to divide by zero.