Public bug reported:

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

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
grub-probe crashes with null pointer dereference in probe_raid_level
https://bugs.launchpad.net/bugs/482542
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to