[Parted-maintainers] Bug#704503: parted: You found a bug in GNU Parted!

Rogério Brito rbrito at ime.usp.br
Tue Apr 2 03:03:27 UTC 2013


Package: parted
Version: 2.3-12
Severity: normal


While playing with a Linux RAID 5 array made up of 4 x 10MB files attached
to the loopback devices and trying to run parted on this, I got:

,----[ parted /dev/md0 ]
| GNU Parted 2.3
| Using /dev/md0
| Welcome to GNU Parted! Type 'help' to view a list of commands.
| (parted) print                                                            
| Backtrace has 13 calls on stack:
|   13: /lib/x86_64-linux-gnu/libparted.so.0(ped_assert+0x2e) [0x7fd9c04be2ee]
|   12: /lib/x86_64-linux-gnu/libparted.so.0(+0x3e02e) [0x7fd9c04e802e]
|   11: /lib/x86_64-linux-gnu/libparted.so.0(+0x3e43e) [0x7fd9c04e843e]
|   10: /lib/x86_64-linux-gnu/libparted.so.0(+0x40c73) [0x7fd9c04eac73]
|   9: /lib/x86_64-linux-gnu/libparted.so.0(ped_disk_add_partition+0x163) [0x7fd9c04c4053]
|   8: /lib/x86_64-linux-gnu/libparted.so.0(+0x3f72b) [0x7fd9c04e972b]
|   7: /lib/x86_64-linux-gnu/libparted.so.0(+0x407c3) [0x7fd9c04ea7c3]
|   6: /lib/x86_64-linux-gnu/libparted.so.0(ped_disk_new+0x58) [0x7fd9c04c44f8]
|   5: parted() [0x4075cf]
|   4: parted(interactive_mode+0xf3) [0x40e353]
|   3: parted(main+0x1446) [0x406cb6]
|   2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7fd9bfcceead]
|   1: parted() [0x406d49]
|                                                                           
| 
| 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.
| Help us to fix this bug by doing the following:
| 
| Check whether the bug has already been fixed by checking
| the last version of GNU Parted that you can find at:
| 
| 	http://ftp.gnu.org/gnu/parted/
| 
| Please check this version prior to bug reporting.
| 
| If this has not been fixed yet or if you don't know how to check,
| please visit the GNU Parted website:
| 
| 	http://www.gnu.org/software/parted
| 
| for further information.
| 
| Your report should contain the version of this release (2.3)
| along with the error message below, the output of
| 
| 	parted DEVICE unit co print unit s print
| 
| and the following history of commands you entered.
| Also include any additional information about your setup you
| consider important.
| 
| Assertion (head_size <= 63) at ../../../libparted/labels/dos.c:662 in function probe_partition_for_geom() failed.
| 
| Aborted
`----

The array had only 3 "disks", I attached another "disk" (the device was
already grown) and I was going to resize the filesystem, when I got the
error message above.

There's no way to get the output asked above in the message that parted
asks, but here is the output from a regular fdisk:

,----[ fdisk -l /dev/md0 ]
| Disk /dev/md0: 29 MB, 29884416 bytes
| 2 heads, 4 sectors/track, 7296 cylinders, total 58368 sectors
| Units = sectors of 1 * 512 = 512 bytes
| Sector size (logical/physical): 512 bytes / 512 bytes
| I/O size (minimum/optimal): 524288 bytes / 1048576 bytes
| Disk identifier: 0x736dd8b4
| 
|     Device Boot      Start         End      Blocks   Id  System
| /dev/md0p1            2048       38911       18432   83  Linux
`----

About the layout of the raid array:

,----[ mdadm --detail /dev/md0 ]
| /dev/md0:
|         Version : 1.2
|   Creation Time : Mon Apr  1 23:05:02 2013
|      Raid Level : raid5
|      Array Size : 29184 (28.50 MiB 29.88 MB)
|   Used Dev Size : 9728 (9.50 MiB 9.96 MB)
|    Raid Devices : 4
|   Total Devices : 4
|     Persistence : Superblock is persistent
| 
|     Update Time : Mon Apr  1 23:49:16 2013
|           State : clean 
|  Active Devices : 4
| Working Devices : 4
|  Failed Devices : 0
|   Spare Devices : 0
| 
|          Layout : left-symmetric
|      Chunk Size : 512K
| 
|            Name : dumont:0  (local to host dumont)
|            UUID : ac6a8bd3:485f9ec1:d37c760b:dd390988
|          Events : 39
| 
|     Number   Major   Minor   RaidDevice State
|        0       7        1        0      active sync   /dev/loop1
|        1       7        2        1      active sync   /dev/loop2
|        3       7        3        2      active sync   /dev/loop3
|        4       7        0        3      active sync   /dev/loop0
`----

I don't know if any further information may be needed, but if anything that
is nonsensitive is asked, I may try to provide it.


Thanks,


-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf-8, LC_CTYPE=pt_BR.utf-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages parted depends on:
ii  libblkid1           2.20.1-5.3
ii  libc6               2.13-38
ii  libdevmapper1.02.1  2:1.02.77-1
ii  libparted0debian1   2.3-12
ii  libreadline6        6.2+dfsg-0.1
ii  libtinfo5           5.9-10
ii  libuuid1            2.20.1-5.3

parted recommends no packages.

Versions of packages parted suggests:
pn  parted-doc  <none>

-- no debconf information

-- 
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://rb.doesntexist.org/blog : Projects : https://github.com/rbrito/
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br



More information about the Parted-maintainers mailing list