[Parted-maintainers] Bug#698609: /lib/i386-linux-gnu/libparted.so.0(ped_assert+0x29) [0xb76912a9]

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Jan 24 01:04:14 UTC 2013


On Sun 2013-01-20 20:20:43 -0500, Phillip Susi wrote:

> There should be more output than this?  In particular it should say a
> bug in parted has been found, please email, etc, and list the
> assertion that failed.
>
> Can you reproduce this?

Yep, it's reproducible.  Attached is an master boot record that seems to
trigger it on both amd64 and i386.  Here's a transcript working with
disk images on amd64.

0 dkg at alice:~/tmp$ rm test.img 
rm: remove regular file `test.img'? y
0 dkg at alice:~/tmp$ dd if=~/src/parted/bugs/698609/sdb.mbr of=test.img
1+0 records in
1+0 records out
512 bytes (512 B) copied, 9.6833e-05 s, 5.3 MB/s
0 dkg at alice:~/tmp$ dd if=/dev/zero of=test.img bs=1M count=1 seek=5000
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00221428 s, 474 MB/s
0 dkg at alice:~/tmp$ /sbin/parted test.img print
WARNING: You are not superuser.  Watch out for permissions.
Backtrace has 13 calls on stack:
  13: /lib/x86_64-linux-gnu/libparted.so.0(ped_assert+0x2e) [0x7fb1ba5792ee]
  12: /lib/x86_64-linux-gnu/libparted.so.0(+0x3e02e) [0x7fb1ba5a302e]
  11: /lib/x86_64-linux-gnu/libparted.so.0(+0x3e43e) [0x7fb1ba5a343e]
  10: /lib/x86_64-linux-gnu/libparted.so.0(+0x40c73) [0x7fb1ba5a5c73]
  9: /lib/x86_64-linux-gnu/libparted.so.0(ped_disk_add_partition+0x163) [0x7fb1ba57f053]
  8: /lib/x86_64-linux-gnu/libparted.so.0(+0x3f72b) [0x7fb1ba5a472b]
  7: /lib/x86_64-linux-gnu/libparted.so.0(+0x407c3) [0x7fb1ba5a57c3]
  6: /lib/x86_64-linux-gnu/libparted.so.0(ped_disk_new+0x58) [0x7fb1ba57f4f8]
  5: /sbin/parted() [0x4075cf]
  4: /sbin/parted(non_interactive_mode+0x8a) [0x40e42a]
  3: /sbin/parted(main+0x1415) [0x406c85]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7fb1b9d89ead]
  1: /sbin/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
134 dkg at alice:~/tmp$ hd < ~/src/parted/bugs/698609/sdb.mbr 
00000000  33 c0 8e d0 bc 00 7c 8e  c0 8e d8 be 00 7c bf 00  |3.....|......|..|
00000010  06 b9 00 02 fc f3 a4 50  68 1c 06 cb fb b9 04 00  |.......Ph.......|
00000020  bd be 07 80 7e 00 00 7c  0b 0f 85 0e 01 83 c5 10  |....~..|........|
00000030  e2 f1 cd 18 88 56 00 55  c6 46 11 05 c6 46 10 00  |.....V.U.F...F..|
00000040  b4 41 bb aa 55 cd 13 5d  72 0f 81 fb 55 aa 75 09  |.A..U..]r...U.u.|
00000050  f7 c1 01 00 74 03 fe 46  10 66 60 80 7e 10 00 74  |....t..F.f`.~..t|
00000060  26 66 68 00 00 00 00 66  ff 76 08 68 00 00 68 00  |&fh....f.v.h..h.|
00000070  7c 68 01 00 68 10 00 b4  42 8a 56 00 8b f4 cd 13  ||h..h...B.V.....|
00000080  9f 83 c4 10 9e eb 14 b8  01 02 bb 00 7c 8a 56 00  |............|.V.|
00000090  8a 76 01 8a 4e 02 8a 6e  03 cd 13 66 61 73 1c fe  |.v..N..n...fas..|
000000a0  4e 11 75 0c 80 7e 00 80  0f 84 8a 00 b2 80 eb 84  |N.u..~..........|
000000b0  55 32 e4 8a 56 00 cd 13  5d eb 9e 81 3e fe 7d 55  |U2..V...]...>.}U|
000000c0  aa 75 6e ff 76 00 e8 8d  00 75 17 fa b0 d1 e6 64  |.un.v....u.....d|
000000d0  e8 83 00 b0 df e6 60 e8  7c 00 b0 ff e6 64 e8 75  |......`.|....d.u|
000000e0  00 fb b8 00 bb cd 1a 66  23 c0 75 3b 66 81 fb 54  |.......f#.u;f..T|
000000f0  43 50 41 75 32 81 f9 02  01 72 2c 66 68 07 bb 00  |CPAu2....r,fh...|
00000100  00 66 68 00 02 00 00 66  68 08 00 00 00 66 53 66  |.fh....fh....fSf|
00000110  53 66 55 66 68 00 00 00  00 66 68 00 7c 00 00 66  |SfUfh....fh.|..f|
00000120  61 68 00 00 07 cd 1a 5a  32 f6 ea 00 7c 00 00 cd  |ah.....Z2...|...|
00000130  18 a0 b7 07 eb 08 a0 b6  07 eb 03 a0 b5 07 32 e4  |..............2.|
00000140  05 00 07 8b f0 ac 3c 00  74 09 bb 07 00 b4 0e cd  |......<.t.......|
00000150  10 eb f2 f4 eb fd 2b c9  e4 64 eb 00 24 02 e0 f8  |......+..d..$...|
00000160  24 02 c3 49 6e 76 61 6c  69 64 20 70 61 72 74 69  |$..Invalid parti|
00000170  74 69 6f 6e 20 74 61 62  6c 65 00 45 72 72 6f 72  |tion table.Error|
00000180  20 6c 6f 61 64 69 6e 67  20 6f 70 65 72 61 74 69  | loading operati|
00000190  6e 67 20 73 79 73 74 65  6d 00 4d 69 73 73 69 6e  |ng system.Missin|
000001a0  67 20 6f 70 65 72 61 74  69 6e 67 20 73 79 73 74  |g operating syst|
000001b0  65 6d 00 00 00 63 7b 9a  18 2e 07 c3 00 00 80 00  |em...c{.........|
000001c0  01 01 07 0f d0 b6 80 1f  00 00 c0 e8 74 00 00 00  |............t...|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200
0 dkg at alice:~/tmp$ 


on i386:

0 root at tiny-monster:~# parted sdb.img
GNU Parted 2.3
Using /root/sdb.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Backtrace has 14 calls on stack:
  14: /lib/i386-linux-gnu/libparted.so.0(ped_assert+0x29) [0xb76d62a9]
  13: /lib/i386-linux-gnu/libparted.so.0(+0x42adb) [0xb770badb]
  12: /lib/i386-linux-gnu/libparted.so.0(+0x432f4) [0xb770c2f4]
  11: /lib/i386-linux-gnu/libparted.so.0(+0x4683f) [0xb770f83f]
  10: /lib/i386-linux-gnu/libparted.so.0(+0x1180e) [0xb76da80e]
  9: /lib/i386-linux-gnu/libparted.so.0(ped_disk_add_partition+0x1d6) [0xb76ddc56]
  8: /lib/i386-linux-gnu/libparted.so.0(+0x448d0) [0xb770d8d0]
  7: /lib/i386-linux-gnu/libparted.so.0(+0x462cf) [0xb770f2cf]
  6: /lib/i386-linux-gnu/libparted.so.0(ped_disk_new+0x61) [0xb76de171]
  5: parted() [0x804e71b]
  4: parted(interactive_mode+0x116) [0x8056186]
  3: parted(main+0x1906) [0x804dd86]
  2: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb751de46]
  1: parted() [0x804de25]
                                                                          

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


hth,

  --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdb.mbr
Type: application/octet-stream
Size: 512 bytes
Desc: master boot record that causes parted to crash.
URL: <http://lists.alioth.debian.org/pipermail/parted-maintainers/attachments/20130123/2d1978b4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 965 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-maintainers/attachments/20130123/2d1978b4/attachment.pgp>


More information about the Parted-maintainers mailing list