Bug#503173: grub-common: Segmentation fault in grub-probe
William Herrin
bill at herrin.us
Sun Mar 15 03:09:59 UTC 2009
I also get a segv when running under kernels using exec-shield.
(http://people.redhat.com/mingo/exec-shield/).
# grub-probe
No path or device is specified.
Try ``grub-probe --help'' for more information.
# grub-probe -v -d /dev/hda
Segmentation fault
There was no output from grub-install offering a clue about the source
of the failure (grub-probe segving). The absence of the expected
output offered a clue that there was a problem.
# grub-install /dev/hda
# echo $?
1
I first encountered the error during a kernel install which offered
only the following:
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
User postinst hook script [update-grub] exited with value 139
Workaround:
# echo 0 > /proc/sys/kernel/exec-shield
# grub-install /dev/hda
install_device=/dev/hda
Searching for GRUB installation directory ... found: /boot/grub
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/hda
(hd1) /dev/hdc
# echo 2 > /proc/sys/kernel/exec-shield
More information about the Pkg-grub-devel
mailing list