Public bug reported:
Binary package hint: grub2
Many plug-and-play wireless modems present themselves as group of USB
devices, including storage device, like CD-ROM. It is not a real drive,
but a trick to help installing drivers on Windows. This storage has
autorun file and drivers for Windows so that they are automatically
installed when device is plugged in.
I use Samsung U200 supported by madwimax package. It turns off the CD
part of device with '/bin/echo -n $kernel > /sys/$devpath/driver/unbind'
command in udev rules. This leads to a condition when in /dev/disk/by-
id/ there is a link like this: "usb-Samsung_Install_Disk-0:0 ->
../../sr1". But there is no /dev/sr1
When one updates to grub 1.98+20100804-5ubuntu3 in such condition, or
issues "update-grub" or "grub-install" commands, he will see error
messages. The output is the following.
mi...@k8n:~$ sudo dpkg-reconfigure grub-pc
Segmentation fault
Generating grub.cfg ...
Segmentation fault
Segmentation fault
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Segmentation fault
Segmentation fault
Found memtest86+ image: /boot/memtest86+.bin
Segmentation fault
Found Ubuntu 9.10 (9.10) on /dev/sda5
Segmentation fault
Found Ubuntu 10.04.1 LTS (10.04) on /dev/sda6
Segmentation fault
done
During this process, /boot/grub/device.map gets destroyed, and as I
believe, more severe consequences will follow on reboot. I just was
reluctant to experience them, and tracked this issue.
The reason is grub-mkdevicemap program, which crashes with segfault. It
happens because NULL pointer (because of failed canonicalize_file_name)
is supplied to strcmp function. By the standard, in such case its
behavior is undefined. In my case, it preferred to crash.
The patch to resolve this issue is attached.
While my issue may seem exotic, there may be more plain way to get into
the same trouble. There's also bugs like 518026 and 510436 which can be
caused by this or likely issue, and remedied by the proposed patch.
I am no way experienced in Debian or Ubuntu infrastructure, so please
excuse me if this is prepared in a wrong way, and be welcome with
questions and suggestions.
** Affects: grub2 (Ubuntu)
Importance: Undecided
Status: New
--
grub package update may crash when used with PnP wireless modems
https://bugs.launchpad.net/bugs/657489
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs