Bug#598257: grub-pc: segfaults on md raid1 device
Vladimir 'φ-coder/phcoder' Serbinenko
phcoder at gmail.com
Mon Nov 1 09:38:17 UTC 2010
tag 598257 fixed-upstream
thanks
I believe this to be fixed in upstream. Can you confirm?
On 09/27/2010 10:42 PM, Clint Adams wrote:
> Package: grub-pc
> Version: 1.98+20100804-5
>
> /dev/md0 is a raid1 md comprising 5 physical devices, mounted on /boot
>
> Core was generated by `/usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=device /boot/g'.
> Program terminated with signal 11, Segmentation fault.
> #0 0x0807a05e in insert_array (disk=0x86e1508, new_array=0xbf9f8d98,
> start_sector=2048, scanner_name=0x808007c "mdraid")
> at ../../disk/raid.c:505
> 505 if (array->device[new_array->index] != NULL)
> (gdb) bt
> #0 0x0807a05e in insert_array (disk=0x86e1508, new_array=0xbf9f8d98,
> start_sector=2048, scanner_name=0x808007c "mdraid")
> at ../../disk/raid.c:505
> #1 0x0807a4f1 in hook (name=0x86e0e28 "hd1,gpt2") at ../../disk/raid.c:666
> #2 0x0804e36e in iterate_disk (disk_name=0x86db9f8 "hd1")
> at ../../kern/device.c:123
> #3 0x0804a5bf in grub_util_biosdisk_iterate (hook=0xbf9f9008)
> at ../../kern/emu/hostdisk.c:206
> #4 0x0804e8c7 in grub_disk_dev_iterate (hook=0xbf9f9008)
> at ../../kern/disk.c:212
> #5 0x0804e415 in grub_device_iterate (hook=0x807a42d <hook>)
> at ../../kern/device.c:168
> #6 0x0807a54d in grub_raid_register (raid=0x8081d24) at ../../disk/raid.c:683
> #7 0x0807b557 in grub_mod_init (mod=0x0) at ../../disk/mdraid_linux.c:418
> #8 0x0807b543 in grub_mdraid_init () at ../../disk/mdraid_linux.c:416
> #9 0x0807cae4 in grub_init_all () at grub_probe_init.c:58
> #10 0x0804a438 in main (argc=4, argv=0xbf9f9184) at ../../util/grub-probe.c:443
>
> (gdb) bt full
> #0 0x0807a05e in insert_array (disk=0x86e1508, new_array=0xbf9f8d98,
> start_sector=2048, scanner_name=0x808007c "mdraid")
> at ../../disk/raid.c:505
> array = 0x86e0f88
> p = 0x86e0f88
> #1 0x0807a4f1 in hook (name=0x86e0e28 "hd1,gpt2") at ../../disk/raid.c:666
> disk = 0x86e1508
> array = {number = 0, level = 1, layout = 0, total_devs = 2,
> chunk_size = 0, disk_size = 39060308, index = 65535, uuid_len = 16,
> uuid = 0x86e0f48 "", name = 0x86e09d0 "newmurphy:1", nr_devs = 0,
> device = {0x0 <repeats 32 times>}, start_sector = {0, 0, 3076642070,
> 11145440133120, 578577998163334422, 550368259179273727,
> 18369619934385850831, 9849090910082695167, 34359738368, 0,
> 578580292894195729, 13217836159451743136, 3076642070,
> 13217836159451743136, 3077522336, 13214137166250086104,
> 577813648603469078, 5216668105570226176, 577834303239458552,
> 4436396296, 2522984048754705, 13217836159451743136, 3077522336,
> 13214137166250086168, 206158430233, 13217836159451743136,
> 3077522336, 13214137166250086200, 577835389866184536,
> 5216668105570226176, 577834303239458648, 13212233530591807952},
> next = 0x0}
> start_sector = 2048
> #2 0x0804e36e in iterate_disk (disk_name=0x86db9f8 "hd1")
> at ../../kern/device.c:123
> next = 0x86e0950
> p = 0x86e0998
> ret = 0
> dev = 0x86dfb20
> hook = 0x807a42d <hook>
> ents = 0x86e09d0
> #3 0x0804a5bf in grub_util_biosdisk_iterate (hook=0xbf9f9008)
> at ../../kern/emu/hostdisk.c:206
> i = 1
> #4 0x0804e8c7 in grub_disk_dev_iterate (hook=0xbf9f9008)
> at ../../kern/disk.c:212
> p = 0x8081540
> #5 0x0804e415 in grub_device_iterate (hook=0x807a42d <hook>)
> at ../../kern/device.c:168
> ents = 0x1
> #6 0x0807a54d in grub_raid_register (raid=0x8081d24) at ../../disk/raid.c:683
> No locals.
> #7 0x0807b557 in grub_mod_init (mod=0x0) at ../../disk/mdraid_linux.c:418
> No locals.
> #8 0x0807b543 in grub_mdraid_init () at ../../disk/mdraid_linux.c:416
> No locals.
> #9 0x0807cae4 in grub_init_all () at grub_probe_init.c:58
> No locals.
> #10 0x0804a438 in main (argc=4, argv=0xbf9f9184) at ../../util/grub-probe.c:443
> dev_map = 0x86da858 "/boot/grub/device.map"
> argument = 0xbf9f99cc "/boot/grub"
>
>
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20101101/6e21fa04/attachment.pgp>
More information about the Pkg-grub-devel
mailing list