Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

10.0_BETA/i386 GENERIC crash at boot on older CPUs



Starting to give 10.0_BETA a shakedown on some of my systems.

On machines with older CPUs (pentium-III, Am5x86), a GENERIC kernel
(or one based on GENERIC) dies during boot with (from Am5x86):

[   1.0000000] NetBSD 10.0_BETA (GENERIC) #4: Wed Jan 18 20:46:54 CST 2023
[   1.0000000] 	sysop%plex760.technoskunk.fur@localhost:/r0/build/netbsd-10/obj/i386/sys/arch/i386/compile/GENERIC
[   1.0000000] total memory = 65148 KB
[   1.0000000] avail memory = 38620 KB
[...]
[   1.0000040] cpu0: AMD 486-class, id 0x4f4
[   1.0000040] cpu0: node 0, package 0, core 0, smt 0
[...]
[   1.0000040] fatal page fault in supervisor mode
[   1.0000040] trap type 6 code 0 eip 0xc0d3d7d8 cs 0xc57b0008 eflags 0x10246 cr2 0x3c ilevel 0x7 esp 0
[   1.0000040] curlwp 0xc165a840 pid 0 lid 0 lowest kstack 0xc19f32c0
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,c57bff6c,c04ac8f1,0,0,0,0,0,0) at netbsd:hardclock+0x23
clockintr(0,0,0,0,0,0,0,0,c1c72000,c010322a) at netbsd:clockintr+0x2a
intr_kdtrace_wrapper(c1c33b80,c19f5d9c,0,0,0,0,0,0,0,0) at netbsd:intr_kdtrace_w
rapper+0x21
--- switch to interrupt stack ---
Xintr_legacy0() at netbsd:Xintr_legacy0+0xda
--- interrupt ---
outb(c16260c0,c1623f80,0,20,1,0,0,c16c5a80,c19f5e94,0) at netbsd:outb+0x9
intr_establish_xname(0,c16260c0,0,1,7,c04c96b5,0,0,c134f916,0) at netbsd:intr_es
tablish_xname+0x2ba
isa_intr_establish_xname(0,0,1,7,c04c96b5,0,c134f916,c19f5f14,c04c9baf,0) at net
bsd:isa_intr_establish_xname+0x91
isa_intr_establish(0,0,1,7,c04c96b5,0,c19f5f60,c0d3d19a,c04b6858,1000) at netbsd
:isa_intr_establish+0x3c
i8254_initclocks(c04b6858,1000,3,c11b0770,c6020000,c601f000,c1670b40,0,c19f5f60,
c0e5f527) at netbsd:i8254_initclocks+0x3a
initclocks(3,0,64,0,0,0,0,0,2a6a000,0) at netbsd:initclocks+0x1c
main(0,0,0,0,0,0,0,0,0,0) at netbsd:main+0x365


The pentium-III system crash and backtrace are similar although ACPI
changes things a bit:

[   1.0000000] NetBSD 10.0_BETA (PLEXOR) #4: Wed Jan 18 21:10:13 CST 2023
[   1.0000000] 	sysop%plex760.technoskunk.fur@localhost:/r0/build/netbsd-10/obj/i386/sys/arch/i386/compile/PLEXOR
[   1.0000000] total memory = 510 MB
[   1.0000000] avail memory = 488 MB
[...]
[   1.0000030] cpu0 at mainbus0
[   1.0000030] cpu0: Intel 686-class, 936MHz, id 0x68a
[   1.0000030] cpu0: node 0, package 0, core 0, smt 0
[...]
[  30.4197804] fatal page fault in supervisor mode
[  30.4197804] trap type 6 code 0 eip 0xc0617718 cs 0x8 eflags 0x10246 cr2 0x1000003c ilevel 0x7 esp 0xc0a29500
[  30.4197804] curlwp 0xc16ac040 pid 0 lid 2 lowest kstack 0xd7c902c0
kernel: supervisor trap page fault, code=0
Stopped in pid 0.2 (system) at  netbsd:hardclock+0x23:  movl    3c(%esi),%eax
db{0}> bt
hardclock(10000000,d7a92ec4,c02864a1,0,10000000,c068d9f3,c027fc14,16b6000,7200,d
7f375f0) at netbsd:hardclock+0x23
clockintr(0,10000000,c068d9f3,c027fc14,16b6000,7200,d7f375f0,0,c1761000,c010313a
) at netbsd:clockintr+0x36
intr_kdtrace_wrapper(c1990540,d7a92ed4,6,d7a90010,c0620030,c16b0010,d7a90010,c16
ac040,1,d7a92f34) at netbsd:intr_kdtrace_wrapper+0x21
Xintr_legacy0() at netbsd:Xintr_legacy0+0xda
--- interrupt ---
cx8_spllower(1,0,d7a92f6c,c02864a1,c186c800,c1761000,c1990540,7,0,c186ba00) at n
etbsd:cx8_spllower+0x14
intr_biglock_wrapper(c186be80,d7c92f10,0,0,0,0,0,0,0,0) at netbsd:intr_biglock_w
rapper+0x68
--- switch to interrupt stack ---
Xintr_legacy5() at netbsd:Xintr_legacy5+0xda
--- interrupt ---
x86_stihlt(c16ac040,0,c0637e70,0,0,c168f100,c0a10100,c168f100,d7c90000,c168f100)
 at netbsd:x86_stihlt+0x5
idle_loop(c16ac040,cbb000,cc4000,0,c01005a8,0,0,0,0,0) at netbsd:idle_loop+0x153

Most notably, if one boots single-user, it reaches the single-user shell,
but will crash upon exiting (going multiuser).

booting w/o ACPI, the crash and backtrace are essentially the same as
the Am5x86 case:

[   1.0044357] fatal page fault in supervisor mode
[   1.0044357] trap type 6 code 0 eip 0xc0617718 cs 0x8 eflags 0x10246 cr2 0x3c ilevel 0x7 esp 0x6
[   1.0044357] curlwp 0xc0a1ab80 pid 0 lid 0 lowest kstack 0xc0cbc2c0
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,d7a92f6c,c02864a1,0,0,0,0,0,0,0) at netbsd:hardclock+0x23
clockintr(0,0,0,0,0,0,0,0,c1755000,c010313a) at netbsd:clockintr+0x36
intr_kdtrace_wrapper(c195a980,c0cbed9c,0,0,0,0,0,0,0,0) at netbsd:intr_kdtrace_w
rapper+0x21
--- switch to interrupt stack ---
Xintr_legacy0() at netbsd:Xintr_legacy0+0xda
--- interrupt ---
outb(c0a12000,c0a10100,0,20,1,0,0,c0a59500,c0cbee94,0) at netbsd:outb+0x9
intr_establish_xname(0,c0a12000,0,1,7,c02a3105,0,0,c08d198f,0) at netbsd:intr_es
tablish_xname+0x2ba
isa_intr_establish_xname(0,0,1,7,c02a3105,0,c08d198f,c0cbef14,c02a35cc,0) at net
bsd:isa_intr_establish_xname+0x91
isa_intr_establish(0,0,1,7,c02a3105,0,c0cbef60,c06170da,c0290378,1000) at netbsd
:isa_intr_establish+0x3c
i8254_initclocks(c0290378,1000,3,c0848cb0,d8834000,d8833000,c0a29500,0,c0cbef60,
c07385f7) at netbsd:i8254_initclocks+0x3a
initclocks(3,4,64,0,0,0,0,0,15432000,0) at netbsd:initclocks+0x1c
main(0,0,0,0,0,0,0,0,0,0) at netbsd:main+0x365


The pentium-III system last successfully booted 9.99.87 on 25 July 2021.
Its kernel is configured by including the "GENERIC" config and using the
"no foo" facility to exclude unnecessary devices/options/features.

On the Am5x86-based system (Soekris net4501), the NET4501 kernel (or
one based thereon) boots properly.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index