tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
i386: 9.99.108 traps booting on VirtualBox
[reposting from current-users]
On Wed, Nov 30, 2022 at 13:05:52 +0300, Valery Ushakov wrote:
> I tried to upgrade a 32-bit VBox VM from 9.99.99 to .107 and the
> kernel from the yesterday's sources crashes on boot.
Tried .108 and it crashes the same with:
> boot netbsd.new
21926532+587532+743668 [994880+1077773+13802]=0x182cf08
[ 1.0000000] cpu_rng: rdrand/rdseed
[ 1.0000000] entropy: ready
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[ 1.0000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[ 1.0000000] 2018, 2019, 2020, 2021, 2022
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.
[ 1.0000000] NetBSD 9.99.108 (GENERIC) #0: Fri Dec 9 01:23:00 MSK 2022
[ 1.0000000] uwe@majava:/home/uwe/work/netbsd/cvs/src/sys/arch/i386/compile/GENERIC
[ 1.0000000] total memory = 1023 MB
[ 1.0000000] avail memory = 980 MB
[ 1.0000040] mainbus0 (root)
[ 1.0000040] ACPI: RSDP 0x00000000000E0000 000024 (v02 VBOX )
[ 1.0000040] ACPI: XSDT 0x000000003FFF0030 000034 (v01 VBOX VBOXXSDT 00000001 ASL 00000061)
[ 1.0000040] ACPI: FACP 0x000000003FFF00F0 0000F4 (v04 VBOX VBOXFACP 00000001 ASL 00000061)
[ 1.0000040] ACPI: DSDT 0x000000003FFF05B0 002353 (v02 VBOX VBOXBIOS 00000002 INTL 20200925)
[ 1.0000040] ACPI: FACS 0x000000003FFF0200 000040
[ 1.0000040] ACPI: SSDT 0x000000003FFF0240 00036C (v01 VBOX VBOXCPUT 00000002 INTL 20200925)
[ 1.0000040] ACPI: 2 ACPI AML tables successfully acquired and loaded
[ 1.0000040] cpu0 at mainbus0
[ 1.0000040] cpu0: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, id 0x306d4
[ 1.0000040] cpu0: node 0, package 0, core 0, smt 0
[ 1.0000040] acpi0 at mainbus0: Intel ACPICA 20220331
[ 1.0000040] acpi0: fixed power button present
[ 1.0000040] acpi0: fixed sleep button present
[ 1.0091954] pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
[ 1.0091954] pckbc2 at acpi0 (PS2M, PNP0F03) (aux port): irq 12
[ 1.0091954] attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53
[ 1.0091954] SRL0 (PNP0501) at acpi0 not configured
[ 1.0091954] acpivga0 at acpi0 (GFX0): ACPI Display Adapter
[ 1.0091954] acpiout0 at acpivga0 (VGA, 0x0100): ACPI Display Output Device
[ 1.0091954] acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery
[ 1.0091954] acpiacad0 at acpi0 (AC, ACPI0003-0): ACPI AC Adapter
[ 1.0091954] apm0 at acpi0: Power Management spec V1.2
[ 1.0091954] ACPI: Enabled 2 GPEs in block 00 to 07
[ 1.0091954] pckbd0 at pckbc1 (kbd slot)
[ 1.0091954] pckbc1: using irq 1 for kbd slot
[ 1.0091954] wskbd0 at pckbd0 mux 1
[ 1.0091954] pms0 at pckbc1 (aux slot)
[ 1.0091954] pckbc1: using irq 12 for aux slot
[ 1.0091954] wsmouse0 at pms0 mux 0
[ 1.0091954] pci0 at mainbus0 bus 0: configuration mode 1
[ 1.0091954] pchb0 at pci0 dev 0 function 0: Intel 82441FX (PMC) PCI and Memory Controller (rev. 0x02)
[ 1.0091954] pcib0 at pci0 dev 1 function 0: Intel 82371SB (PIIX3) PCI-ISA Bridge (rev. 0x00)
[ 1.0091954] piixide0 at pci0 dev 1 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
[ 1.0091954] piixide0: primary channel interrupting at irq 14
[ 1.0091954] atabus0 at piixide0 channel 0
[ 1.0091954] piixide0: secondary channel interrupting at irq 15
[ 1.0091954] atabus1 at piixide0 channel 1
[ 1.0091954] vga0 at pci0 dev 2 function 0: VirtualBox Graphics (rev. 0x00)
[ 1.0091954] wsdisplay0 at vga0 kbdmux 1
[ 1.0091954] drm at vga0 not configured
[ 1.0091954] wm0 at pci0 dev 3 function 0: Intel i82540EM 1000BASE-T Ethernet (rev. 0x02)
[ 1.0091954] wm0: interrupting at irq 9
[ 1.0091954] wm0: Ethernet address 08:00:27:d2:84:ac
[ 1.0091954] makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 4
[ 1.0091954] makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[ 1.0091954] VirtualBox Guest Service (miscellaneous system) at pci0 dev 4 function 0 not configured
[ 1.0091954] auich0 at pci0 dev 5 function 0: i82801AA (ICH) AC-97 Audio
[ 1.0091954] auich0: interrupting at irq 11
[ 1.0091954] auich0: ac97: SigmaTel STAC9700 codec; no 3D stereo
[ 1.0091954] auich0: ac97: ext id 0x809<AC97_23,VRM,VRA>
[ 1.0091954] ohci0 at pci0 dev 6 function 0: Apple Computer Intrepid USB Controller (rev. 0x00)
[ 1.0091954] ohci0: interrupting at irq 10
[ 1.0091954] ohci0: OHCI version 1.0
[ 1.0091954] usb0 at ohci0: USB revision 1.0
[ 1.0091954] piixpm0 at pci0 dev 7 function 0: Intel 82371AB (PIIX4) Power Management Controller (rev. 0x08)
[ 1.0091954] piixpm0: interrupting at irq 9
[ 1.0091954] iic0 at piixpm0 port 0: I2C bus
[ 1.0091954] wm1 at pci0 dev 8 function 0: Intel i82540EM 1000BASE-T Ethernet (rev. 0x02)
[ 1.0091954] wm1: interrupting at irq 11
[ 1.0091954] wm1: Ethernet address 08:00:27:95:0b:c1
[ 1.0091954] makphy1 at wm1 phy 1: Marvell 88E1011 Gigabit PHY, rev. 4
[ 1.0091954] makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[ 1.0091954] ehci0 at pci0 dev 11 function 0: Intel 82801FB/FR USB EHCI Controller (rev. 0x00)
[ 1.0091954] ehci0: interrupting at irq 9
[ 1.0091954] ehci0: Using DMA subregion for control data structures
[ 1.0091954] usb1 at ehci0: USB revision 2.0
[ 1.0091954] isa0 at pcib0
[ 1.0091954] com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, 16-byte FIFO
[ 1.0091954] com0: console
[ 1.0091954] pcppi0 at isa0 port 0x61
[ 1.0091954] midi0 at pcppi0: PC speaker
[ 1.0091954] sysbeep0 at pcppi0
[ 1.0091954] isapnp0 at isa0 port 0x279
[ 1.0091954] attimer1: attached to pcppi0
[ 1.0091954] fatal page fault in supervisor mode
[ 1.0091954] trap type 6 code 0 eip 0xc0d3d8f8 cs 0x8 eflags 0x10246 cr2 0x3c ilevel 0x7 esp 0x6
[ 1.0091954] curlwp 0xc1657840 pid 0 lid 0 lowest kstack 0xc192e2c0
kernel: supervisor trap page fault, code=0
Stopped in pid 0.0 (system) at netbsd:hardclock+0x23: movl 3c(%esi),%eax
db{0}> bt
hardclock(0,0,da3eef6c,c04ac8f1,0,0,0,0,0,0) at netbsd:hardclock+0x23
clockintr(0,0,0,0,0,0,0,0,c2d72000,c010322a) at netbsd:clockintr+0x2a
intr_kdtrace_wrapper(c2f50680,c1930d9c,0,0,0,0,0,0,0,0) at netbsd:intr_kdtrace_wrapper+0x21
--- switch to interrupt stack ---
Xintr_legacy0() at netbsd:Xintr_legacy0+0xda
--- interrupt ---
outb(c16230c0,c1620f80,0,20,1,0,0,c16c2a80,c1930e94,0) at netbsd:outb+0x9
intr_establish_xname(0,c16230c0,0,1,7,c04c96c5,0,0,c134e6d0,0) at netbsd:intr_establish_xname+0x2ba
isa_intr_establish_xname(0,0,1,7,c04c96c5,0,c134e6d0,c1930f14,c04c9bbf,0) at netbsd:isa_intr_establish_xname+0x91
isa_intr_establish(0,0,1,7,c04c96c5,0,c1930f60,c0d3d2ba,c04b6858,1000) at netbsd:isa_intr_establish+0x3c
i8254_initclocks(c04b6858,1000,3,c11b01f0,db0bc000,db0bb000,c166db40,0,c1930f60,c0e5f4f7) at netbsd:i8254_initclocks+0x3a
initclocks(3,5,64,0,0,0,0,0,16800000,0) at netbsd:initclocks+0x1c
main(0,0,0,0,0,0,0,0,0,0) at netbsd:main+0x365
db{0}> show reg
ds 10
es 10
fs 30
gs 10
edi c1657840 lwp0
esi 0
ebp da3eef34
ebx c1620f80 cpu_info_primary
edx 0
ecx c1620f80 cpu_info_primary
eax c16c4080 hardclockrnd
eip c0d3d8f8 hardclock+0x23
cs 8
eflags 10246
esp da3eef1c
ss 10
netbsd:hardclock+0x23: movl 3c(%esi),%eax
db{0}>
The EIP is 0xc0d3d8f8, which as far as I can tell is CLKF_USERMODE()
and it trips over NULL frame.
c0d3d8d5 <hardclock>:
c0d3d8d5: 55 push %ebp
c0d3d8d6: 89 e5 mov %esp,%ebp
c0d3d8d8: 57 push %edi
c0d3d8d9: 56 push %esi
c0d3d8da: 53 push %ebx
c0d3d8db: 83 ec 0c sub $0xc,%esp
c0d3d8de: 8b 75 08 mov 0x8(%ebp),%esi
c0d3d8e1: b8 80 40 6c c1 mov $0xc16c4080,%eax
c0d3d8e6: e8 0f f9 ff ff call c0d3d1fa <clockrnd_sample>
c0d3d8eb: 64 8b 1d 04 03 00 00 mov %fs:0x304,%ebx
c0d3d8f2: 8b bb c4 08 00 00 mov 0x8c4(%ebx),%edi
c0d3d8f8: -> 8b 46 3c mov 0x3c(%esi),%eax
c0d3d8fb: 83 e0 03 and $0x3,%eax
c0d3d8fe: 83 f8 03 cmp $0x3,%eax
c0d3d901: 0f 94 c0 sete %al
c0d3d904: 0f b6 c0 movzbl %al,%eax
c0d3d907: 89 44 24 04 mov %eax,0x4(%esp)
c0d3d90b: 89 3c 24 mov %edi,(%esp)
c0d3d90e: e8 b5 62 05 00 call c0d93bc8 <ptimer_tick>
...
-uwe
Home |
Main Index |
Thread Index |
Old Index