[Bug 482542] Re: grub-probe crashes with null pointer dereference in probe_raid_level
Tommy_CZ
482542 at bugs.launchpad.net
Wed Aug 14 21:11:53 UTC 2013
same problem with MacbookAir2013 and Ubuntu 12.04.2.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/482542
Title:
grub-probe crashes with null pointer dereference in probe_raid_level
Status in “grub2” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: grub2
This occurs on a machine which previously worked just fine. grub-pc
is installed in the MBR of /dev/sda, which consists of a single
partition with an LVM pv on there. /boot is on /, which is on the
Ubuntu-Root lv. This worked fine.
I installed a second SATA disc, created a single partition, and added
it to the Primary-Storage vg. Now, grub-probe segfaults when called
with --target=abstraction, and the system fails to boot.
Tracing things back with gdb, this occurs because probe_raid_level on
grub-probe.c:167 is called with list->disk, which is NULL. list->disk
is NULL because grub_lvm_scan_device sets up the list of pvs
associated with each vg, but only sets pv->disk for the device
grub_lvm_scan_device was called on. Since I did not have /dev/sdb in
/boot/grub/device.map, grub_lvm_scan_device is not called with the
device containing this pv.
Upon adding an entry for /dev/sdb to /boot/grub/device.map grub-probe
works, and grub boots the machine succesfully.
ProblemType: Bug
Architecture: amd64
Date: Sat Nov 14 19:11:24 2009
DistroRelease: Ubuntu 9.10
Package: grub-common 1.97~beta4-1ubuntu4
ProcEnviron:
SHELL=/bin/zsh
PATH=(custom, user)
LANG=en_AU.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
SourcePackage: grub2
Uname: Linux 2.6.31-15-generic x86_64
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/482542/+subscriptions
More information about the foundations-bugs
mailing list