It seems that my particular failure is caused by my /boot being on RAID and so is unrelated to this exact bug:
# grub-probe -v --target=partmap --device-map=/boot/grub/device.map
/boot/grub
grub-probe: info: the size of hd0 is 117266688
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of hd0 is 117266688
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of hd0 is 117266688
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: the size of hd0 is 117266688
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: the size of hd1 is 586114704
grub-probe: info: opening the device `/dev/hdb'
grub-probe: info: the size of hd1 is 586114704
grub-probe: info: opening the device `/dev/hdb'
grub-probe: info: the size of hd1 is 586114704
grub-probe: info: opening the device `/dev/hdb1'
grub-probe: info: opening the device `/dev/hdb1'
grub-probe: info: the size of hd1 is 586114704
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: the size of hd1 is 586114704
grub-probe: info: the size of hd2 is 240121728
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd2 is 240121728
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd2 is 240121728
grub-probe: info: opening the device `/dev/hde1'
grub-probe: info: opening the device `/dev/hde1'
grub-probe: info: the size of hd3 is 586114704
grub-probe: info: opening the device `/dev/hdg'
grub-probe: info: the size of hd3 is 586114704
grub-probe: info: opening the device `/dev/hdg'
grub-probe: info: the size of hd3 is 586114704
grub-probe: info: opening the device `/dev/hdg1'
grub-probe: info: opening the device `/dev/hdg1'
grub-probe: info: the size of hd3 is 586114704
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: the size of hd3 is 586114704
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: the size of hd0 is 117266688
grub-probe: info: the size of hd0 is 117266688
grub-probe: info: the size of hd0 is 117266688
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: the size of hd0 is 117266688
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: opening the device `/dev/hda2'
grub-probe: info: the size of hd1 is 586114704
grub-probe: info: the size of hd1 is 586114704
grub-probe: info: the size of hd1 is 586114704
grub-probe: info: opening the device `/dev/hdb1'
grub-probe: info: opening the device `/dev/hdb1'
grub-probe: info: opening the device `/dev/hdb1'
grub-probe: info: the size of hd1 is 586114704
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: opening the device `/dev/hdb2'
grub-probe: info: the size of hd2 is 240121728
grub-probe: info: the size of hd2 is 240121728
grub-probe: info: the size of hd2 is 240121728
grub-probe: info: opening the device `/dev/hde1'
grub-probe: info: opening the device `/dev/hde1'
grub-probe: info: opening the device `/dev/hde1'
grub-probe: info: the size of hd3 is 586114704
grub-probe: info: the size of hd3 is 586114704
grub-probe: info: the size of hd3 is 586114704
grub-probe: info: opening the device `/dev/hdg1'
grub-probe: info: opening the device `/dev/hdg1'
grub-probe: info: opening the device `/dev/hdg1'
grub-probe: info: the size of hd3 is 586114704
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: opening the device `/dev/hdg2'
grub-probe: info: changing current directory to /dev
grub-probe: info: changing current directory to mapper
grub-probe: info: changing current directory to snd
grub-probe: info: changing current directory to net
grub-probe: info: changing current directory to loop
grub-probe: info: changing current directory to shm
grub-probe: info: changing current directory to network
grub-probe: info: changing current directory to resolvconf
grub-probe: info: changing current directory to interface
grub-probe: info: changing current directory to pts
grub-probe: info: opening md0
Segmentation fault
Backtrace:
#0 0x08049213 in main (argc=Cannot access memory at address 0x14)
at /tmp/x/grub2-1.95+20070507/util/i386/pc/grub-probe.c:129
c = <value optimized out>
dev_map = 0x8064008 "/boot/grub/device.map"
path = <value optimized out>
Line 129 of grub-probe.c is not main() however, it's probe (), so I'm
not sure how to debug this further. Shall I file a separate bug?
--
Sam Morris
http://robots.org.uk/
PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
signature.asc
Description: This is a digitally signed message part

