FreeBSD relocator crash
While working on Debian bug #612128 in a KVM instance, I found that any call to kfreebsd_module_elf seems to crash GRUB (1.99~rc1). I reproduced this with both FreeBSD 7.2 + acpi.ko and FreeBSD 8.1 + ufs.ko. This sequence of commands:
kfreebsd /boot/kfreebsd-8.1-1-686.gz
set debug=all
kfreebsd_module_elf /lib/modules/8.1-1-686/ufs.ko
... results in this sequence of debug messages just before hanging:
kern/disk.c:245: Opening `hd0,msdos1'...
partmap/msdos.c:140: partition 0: flag 0x80, type 0xa5, start 0x3f, len 0x13fff71 kern/fs.c:54: Detecting ufs2...
lib/relocator.c:1211: min_addr = 0xec6fec, max_addr = 0xffffffff, target = 0xec7000 lib/relocator.c:424: trying to allocate in 0xec7000-0xffffffff aligned 0x1 size 0x43ab8
Does anyone know what's wrong here, or my best strategy for gathering more information if it isn't obvious?
Thanks,
Signature · 1 line
Colin Watson [[email protected]]
2011/2/9 Colin Watson <[email protected]>:
Quoted 10 lines
While working on Debian bug #612128 in a KVM instance, I found that any call to
kfreebsd_module_elfseems to crash GRUB (1.99~rc1). I reproduced this with both FreeBSD 7.2 + acpi.ko and FreeBSD 8.1 + ufs.ko. This sequence of commands:kfreebsd
/boot/kfreebsd-8.1-1-686.gz
set debug=all
kfreebsd_module_elf/lib/modules/8.1-1-686/ufs.ko... results in this sequence of debug messages just before hanging:
I suggest a regression search. The following combination is widely tested and known to work:
- GRUB 1.98+20100804-14
- kfreebsd /boot/kfreebsd-8.1-1-amd64.gz
- kfreebsd_module_elf /lib/modules/8.1-1-amd64/opensolaris.ko
- kfreebsd_module_elf /lib/modules/8.1-1-amd64/zfs.ko
Signature · 1 line
Robert Millan
Quoted 13 lines · Robert Millan
2011/2/9 Colin Watson <[email protected]>:
Quoted 11 lines
While working on Debian bug #612128 in a KVM instance, I found that any call to
kfreebsd_module_elfseems to crash GRUB (1.99~rc1). I reproduced this with both FreeBSD 7.2 + acpi.ko and FreeBSD 8.1 + ufs.ko. This sequence of commands:kfreebsd
/boot/kfreebsd-8.1-1-686.gz
set debug=all
kfreebsd_module_elf/lib/modules/8.1-1-686/ufs.ko... results in this sequence of debug messages just before hanging:
Quoted 9 lines
I suggest a regression search. The following combination is widely tested and known to work:
- GRUB 1.98+20100804-14
- kfreebsd/boot/kfreebsd-8.1-1-amd64.gz
-kfreebsd_module_elf/lib/modules/8.1-1-amd64/opensolaris.ko
-kfreebsd_module_elf/lib/modules/8.1-1-amd64/zfs.ko
Switch to relocator postdates 20100804 AFAIR.
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 11 lines · Colin Watson
While working on Debian bug #612128 in a KVM instance, I found that any call to
kfreebsd_module_elfseems to crash GRUB (1.99~rc1). I reproduced this with both FreeBSD 7.2 + acpi.ko and FreeBSD 8.1 + ufs.ko. This sequence of commands:kfreebsd
/boot/kfreebsd-8.1-1-686.gz
set debug=all
kfreebsd_module_elf/lib/modules/8.1-1-686/ufs.ko... results in this sequence of debug messages just before hanging:
Quoted 10 lines
kern/disk.c:245: Opening `hd0,msdos1'...
partmap/msdos.c:140: partition 0: flag0x80, type0xa5, start0x3f, len0x13fff71kern/fs.c:54: Detecting ufs2...
lib/relocator.c:1211:min_addr=0xec6fec,max_addr=0xffffffff, target =0xec7000lib/relocator.c:424: trying to allocate in 0xec7000-0xffffffff aligned0x1size0x43ab8Does anyone know what's wrong here, or my best strategy for gathering more information if it isn't obvious?
Could you supply a minimal ISO and exact kvm configuration which recreates the problem?
Quoted 3 lines
Thanks,
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Fixed
Quoted 23 lines · Colin Watson
While working on Debian bug #612128 in a KVM instance, I found that any call to
kfreebsd_module_elfseems to crash GRUB (1.99~rc1). I reproduced this with both FreeBSD 7.2 + acpi.ko and FreeBSD 8.1 + ufs.ko. This sequence of commands:kfreebsd
/boot/kfreebsd-8.1-1-686.gz
set debug=all
kfreebsd_module_elf/lib/modules/8.1-1-686/ufs.ko... results in this sequence of debug messages just before hanging:
kern/disk.c:245: Opening `hd0,msdos1'...
partmap/msdos.c:140: partition 0: flag0x80, type0xa5, start0x3f, len0x13fff71kern/fs.c:54: Detecting ufs2...
lib/relocator.c:1211:min_addr=0xec6fec,max_addr=0xffffffff, target =0xec7000lib/relocator.c:424: trying to allocate in 0xec7000-0xffffffff aligned0x1size0x43ab8Does anyone know what's wrong here, or my best strategy for gathering more information if it isn't obvious?
Thanks,
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko