parted crashes when creating a partition on a lvm2 volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
parted (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: parted
When creating a partition (ext2) on a lvm2 volume, parted crashes. I get different error messages depending on it is invoked, see below.
I launch parted with:
$ parted /dev/fluid/fpm
Utilisation de /dev/dm-0 (using /dev/dm-0)
Then I type:
mkpartfs
primary
ext2
0
5000
Ignore
And I get:
Erreur : SEGV_MAPERR (l'adresse n'est pas associée à un objet) (The address is not associated with a object)
Backtrace : 13 appels sur la pile:
13: /lib/libparted.
12: parted() [0x40c32f]
11: /lib/libc.
10: /lib/libparted.
9: /lib/libparted.
8: /lib/libparted.
7: /lib/libparted.
6: /lib/libparted.
5: parted() [0x408c4c]
4: parted(
3: parted(main+0x8f) [0x40ab3f]
2: /lib/libc.
1: parted() [0x404fa9]
Assertion (0) à ../../parted/ui.c: échec de 356 dans la fonction sa_sigsegv_
=======
I am actually trying to use vmbuilder, which seems to launch the following command:
parted --script -- /dev/fluid/fpm mkpart primary ext2 0 9599
See for yourself:
2010-10-24 18:01:22,882 INFO : Mounting target filesystems
2010-10-24 18:01:22,882 INFO : Adding partition table to disk image: /dev/fluid/fpm
2010-10-24 18:01:23,075 INFO : Adding type 4 partition to disk image: /dev/fluid/fpm
2010-10-24 18:01:23,210 INFO : device-mapper: deps ioctl failed: No such device or address
2010-10-24 18:01:23,516 ERROR : Process (['parted', '--script', '--', '/dev/fluid/fpm', 'mkpart', 'primary', 'ext2', '0', '9599']) returned -11. stdout: , stderr: device-mapper: deps ioctl failed: No such device or address
And this gives me:
device-mapper: deps ioctl failed: No such device or address
When I try to launch that same command manually, I just get a core-dumped error.
=======
LVM Physical volumes:
PV VG Fmt Attr PSize PFree
/dev/sda3 fluid lvm2 a- 80,17g 70,17g
/dev/sdb2 fluid lvm2 a- 70,92g 70,92g
LVM Volume Groups:
VG #PV #LV #SN Attr VSize VFree
fluid 2 1 0 wz--n- 151,09g 141,09g
LVM Logical volumes:
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
fpm fluid -wi-a- 10,00g
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: parted 2.3-2ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Sun Oct 24 18:25:56 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 (20101002)
ProcEnviron:
LC_MONETARY=
PATH=(custom, user)
LANG=fr_FR.utf8
SHELL=/bin/bash
SourcePackage: parted
description: | updated |
I have a very similar problem, with
ubuntu@ubuntu:~$ parted -v
parted (GNU parted) 2.3
ubuntu@ubuntu:~$ sudo parted -l so.0(ped_ assert+ 0x31) [0x7ff8bb49f5c1] so.0(ped_ geometry_ read+0x80) [0x7ff8bb4a7070] so.0(hfsplus_ probe+0x281) [0x7ff8bb4bf901] so.0(ped_ file_system_ probe_specific+ 0x5c) [0x7ff8bb4a0bcc] so.0(ped_ file_system_ probe+0xab) [0x7ff8bb4a117b] so.0(+0x3ff7f) [0x7ff8bb4d0f7f] so.0(ped_ disk_new+ 0x75) [0x7ff8bb4a6815] so.6(__ libc_start_ main+0xfe) [0x7ff8baca7d8e]
Backtrace has 14 calls on stack:
14: /lib/libparted.
13: /lib/libparted.
12: /lib/libparted.
11: /lib/libparted.
10: /lib/libparted.
9: /lib/libparted.
8: /lib/libparted.
7: parted() [0x40698e]
6: parted() [0x40778d]
5: parted() [0x4097d4]
4: parted() [0x40a9cf]
3: parted(main+0x2c) [0x40aadc]
2: /lib/libc.
1: parted() [0x404fa9]
Aborted (core dumped)
My partition setup is:
ubuntu@ubuntu:~$ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.5.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT. FCBF-4F9C- 9C2A-0705D3A375 D6
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Disk identifier (GUID): 5D4BCC7F-
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Total free space is 611358651 sectors (291.5 GiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System
2 409640 365414489 174.0 GiB AF00 Apple HFS/HFS+
ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 500.1 GB, 500107862016 bytes
256 heads, 63 sectors/track, 60563 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 60564 488386583+ ee GPT