Bug#597563: grub-common: grub-probe segfaults scanning lvm devices

Matthew Gabeler-Lee cheetah at cheetah.fastcat.org
Sat Jan 8 04:08:27 UTC 2011


On Fri, 7 Jan 2011, Vladimir 'φ-coder/phcoder' Serbinenko wrote:

> I believe it to be a problem with raid5. Could you try the latest
> upstream? If problem persists I would need following dumps:
> dd if=/dev/sd[abcd]3 of=[abcd].img bs=1024 count=64
> dd if=/dev/md2 of=2.img bs=1024 count=64
> grub-fstest -c 4 /dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3 hex -l
> '(md2)+128' > g2.img

OK, built grub from latest bzr trunk.

From my past workarounds, I effectively have a list of all the 
invocations of grub-probe that grub-install/grub-setup runs on my 
system.  Most of those work fine now.  The only thing that isn't fine is 
that most invocations spit out a message "error: found two disks with 
the number 0" but give a correct answer and exit successfully.

If I run grub-probe with enough --verbose arguments, then that message 
gets this context:

grub-core/disk/raid.c:699: Scanning for RAID devices on disk hd2
grub-core/kern/disk.c:245: Opening `hd2'...
./grub-probe: info: the size of hd2 is 1465149168.
error: found two disks with the number 0.
grub-core/kern/disk.c:330: Closing `hd2'.

So, it seems maybe you're right that there's something funky with the 
raid5.  The outputs you requested are attached.  The grub-fstest 
invocation complained that -l is not a valid option, I hope the output 
without it is still what you want / need.  I included the full output of 
one of the complaining grub-probe invocations too, on the guess that it 
might be helpful.

FWIW, the raid5 array in question has had every disk swapped at least 
once in its life span, including from growing from 3 to 4 disks, and 
from smaller to larger disks, not to mention one or two disk failures 
along the way.

-- 
 	-Matt
"Reality is that which, when you stop believing in it, doesn't go away".
                 -- Philip K. Dick
GPG pubkey fingerprint: A57F B354 FD30 A502 795B 9637 3EF1 3F22 A85E 2AD1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub-debug.tar.bz2
Type: application/octet-stream
Size: 59356 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110107/32b336b3/attachment-0001.obj>


More information about the Pkg-grub-devel mailing list