[Fwd: Re: Bug#545460: segfault during update of grub-pc package]
-------- Weitergeleitete Nachricht --------
Quoted 11 lines
Von: Robert Ramiega <[email protected]>
An: Felix Zielcke <[email protected]>
Kopie: [email protected]
Betreff: Re: Bug#545460: segfault during update of grub-pc package
Datum: Tue, 8 Sep 2009 11:57:06 +0200(gdb) r --device
/dev/mapper/rhenvar-lvol0--target=abstraction Starting program:/usr/sbin/grub-probe--device/dev/mapper/rhenvar-lvol0--target=abstraction
Quoted 11 lines
Program received signal SIGSEGV, Segmentation fault.
0x080490a8inprobe_raid_level(disk=0x0) at/home/work/src/grub2/util/grub-probe.c:94
94 if (disk->dev->id!=GRUB_DISK_DEVICE_RAID_ID)
(gdb) bt
#00x080490a8inprobe_raid_level(disk=0x0) at/home/work/src/grub2/util/grub-probe.c:94
#10x08049293in probe (path=0x0, device_name=0xbffffea0 "/dev/mapper/rhenvar-lvol0") at/home/work/src/grub2/util/grub-probe.c:167#20x0804982fin main (argc=4, argv=0xbffffd74) at/home/work/src/grub2/util/grub-probe.c:417
Should we just check if disk or disk-dev is NULL or is this a more serious problem where something else needs a change?
Signature · 2 lines
Felix Zielcke Proud Debian Maintainer
Quoted 12 lines · Felix Zielcke
Quoted 11 lines
Program received signal SIGSEGV, Segmentation fault.
0x080490a8inprobe_raid_level(disk=0x0) at/home/work/src/grub2/util/grub-probe.c:94
94 if (disk->dev->id!=GRUB_DISK_DEVICE_RAID_ID)
(gdb) bt
#00x080490a8inprobe_raid_level(disk=0x0) at/home/work/src/grub2/util/grub-probe.c:94
#10x08049293in probe (path=0x0, device_name=0xbffffea0 "/dev/mapper/rhenvar-lvol0") at/home/work/src/grub2/util/grub-probe.c:167#20x0804982fin main (argc=4, argv=0xbffffd74) at/home/work/src/grub2/util/grub-probe.c:417
Quoted 2 lines
Should we just check if disk or disk-dev is NULL or is this a more serious problem where something else needs a change?
Let's not do it blindly. probe_raid_level is called with the NULL argument when going over the list. We need to understand how we get such an element in the list. Then we can think how to fix it.
Signature · 2 lines
Regards, Pavel Roskin