Bug#423022: Bug#422851: grub-pc: Configuration fails if there is no /dev/fd0

Robert Millan rmh at aybabtu.com
Wed May 9 13:58:53 UTC 2007


On Wed, May 09, 2007 at 12:37:03PM +0100, Sam Morris wrote:
> Here's a better backtrace, obtained one I patched the build system to
> respect DEB_BUILD_OPTIONS=noopt:
> 
>         #0  0x08048eb9 in probe (path=0xbfdd6e50 "/boot/grub")
>             at /tmp/x/grub2-1.95+20070507/util/i386/pc/grub-probe.c:129
>                 device_name = 0x806a138 "md0"
>                 drive_name = 0x806e408 "md0"
>                 dev = (grub_device_t) 0x806a028
>                 fs = (grub_fs_t) 0x805a315
>         #1  0x08049433 in main (argc=5, argv=0xbfdd52b4)
>             at /tmp/x/grub2-1.95+20070507/util/i386/pc/grub-probe.c:281
>                 dev_map = 0x806a008 "/boot/grub/device.map"
>                 path = 0xbfdd6e50 "/boot/grub"
> 
> The segfault happens because dev->disk->partition == NULL

Can you confirm that the attached patch converts the segfault into a proper
error?

Also, what is the result of "parted /dev/md0 print" ?

-- 
Robert Millan

My spam trap is honeypot at aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub_probe_segfault.diff
Type: text/x-diff
Size: 517 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20070509/302dd2b9/grub_probe_segfault.bin


More information about the Pkg-grub-devel mailing list