Bug#500482: Segmentation fault in grub-probe (1.96+20081026-1)

Zrin Ziborski zrin.debian at ziborski.net
Tue Oct 28 07:52:06 UTC 2008


Hi,

thank you for the 1.96+20081026-1 binary - I just extracted
the grub-probe binary and tested it on the target system.
The output is somewhat different now, but it still ends
with a segfault:

whg:~/tmp# ./grub-probe -vvv -d /dev/md0

/home/fz/grub/grub2-1.96+20081026/kern/disk.c:220: Opening `hd0'...
grub-probe: info: the size of hd0 is 488397168
/home/fz/grub/grub2-1.96+20081026/kern/disk.c:368: Reading `hd0'...
/home/fz/grub/grub2-1.96+20081026/util/hostdisk.c:316: opening the device
`/dev/sda' in
open_device()/home/fz/grub/grub2-1.96+20081026/kern/disk.c:368: Reading
`hd0'...
[...]
/home/fz/grub/grub2-1.96+20081026/kern/disk.c:220: Opening `hd3,3'...
grub-probe: info: the size of hd3 is 488397168
/home/fz/grub/grub2-1.96+20081026/kern/disk.c:368: Reading `hd3,3'...
/home/fz/grub/grub2-1.96+20081026/kern/disk.c:368: Reading `hd3,3'...
/home/fz/grub/grub2-1.96+20081026/partmap/apple.c:129: bad magic (found
0xeb48; wanted 0x4552
/home/fz/grub/grub2-1.96+20081026/kern/disk.c:368: Reading `hd3,3'...
/home/fz/grub/grub2-1.96+20081026/partmap/pc.c:143: partition 0: flag 0x80,
type 0xfd, start 0x3f, len 0x950a21
/home/fz/grub/grub2-1.96+20081026/partmap/pc.c:143: partition 1: flag 0x0,
type 0x82, start 0x950a60, len 0x772266
/home/fz/grub/grub2-1.96+20081026/partmap/pc.c:143: partition 2: flag 0x0,
type 0xfd, start 0x10c2cc6, len 0x1bf0797a
/home/fz/grub/grub2-1.96+20081026/kern/disk.c:368: Reading `hd3,3'...
/home/fz/grub/grub2-1.96+20081026/util/hostdisk.c:316: opening the device
`/dev/sdd3' in
open_device()/home/fz/grub/grub2-1.96+20081026/util/hostdisk.c:316: opening
the device `/dev/sdd3' in
open_device()/home/fz/grub/grub2-1.96+20081026/kern/disk.c:368: Reading
`hd3,3'...
/home/fz/grub/grub2-1.96+20081026/util/hostdisk.c:316: opening the device
`/dev/sdd3' in
open_device()/home/fz/grub/grub2-1.96+20081026/util/hostdisk.c:316: opening
the device `/dev/sdd3' in
open_device()/home/fz/grub/grub2-1.96+20081026/kern/disk.c:368: Reading
`hd3,3'...
/home/fz/grub/grub2-1.96+20081026/util/hostdisk.c:316: opening the device
`/dev/sdd3' in
open_device()/home/fz/grub/grub2-1.96+20081026/kern/disk.c:368: Reading
`hd3,3'...
/home/fz/grub/grub2-1.96+20081026/kern/disk.c:312: Closing `hd3,3'.
/home/fz/grub/grub2-1.96+20081026/partmap/pc.c:143: partition 3: flag 0x0,
type 0x0, start 0x0, len 0x0
/home/fz/grub/grub2-1.96+20081026/kern/disk.c:312: Closing `hd3'.
/home/fz/grub/grub2-1.96+20081026/disk/raid.c:604: Scanning for RAID devices
/home/fz/grub/grub2-1.96+20081026/kern/disk.c:220: Opening `(null)'...
Segmentation fault

(full output and strace attached)

Perhaps you could try to reproduce the bug by puting my
partition dumps (attached) on some test partitions.

Steve: If you still have the test setup, please try to dump
my sda3 to your hda3, my sdb3 to your hdb3, my sdc3 to your hda4 and
my sdd3 to your hdb4 and test again.

best regards,
Zrin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub-probe-1.96+20081026-strace.txt.gz
Type: application/x-gzip
Size: 4036 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20081028/a974f655/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub-probe-1.96+20081026-vvv.txt.gz
Type: application/x-gzip
Size: 1128 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20081028/a974f655/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 500482-partition_dumps.tar.gz
Type: application/x-gzip
Size: 1210 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20081028/a974f655/attachment-0005.bin 


More information about the Pkg-grub-devel mailing list