Subject: -current kernel hangs on amd64
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 10/10/2007 13:22:10
Hi,

trying "build.sh -j 8 ..." w/ a kernel build from -current
cvs update'd an hour or so ago (userland two or three weeks
old) and using the new scheduler results in:

NetBSD/amd64 (isunopti) (console)

login: Stopped in pid 8208.1 (nbmake) at       netbsd:breakpoint+0x1:  ret
db{0}> bt
breakpoint() at netbsd:breakpoint+0x1
Xintr_ioapic_edge4() at netbsd:Xintr_ioapic_edge4+0xd7
--- interrupt ---
mutex_spin_retry() at netbsd:mutex_spin_retry+0x65
sched_nextlwp() at netbsd:sched_nextlwp+0xcc
mi_switch() at netbsd:mi_switch+0x1d5
sleepq_block() at netbsd:sleepq_block+0x11a
cv_wait_sig() at netbsd:cv_wait_sig+0x124
pipe_read() at netbsd:pipe_read+0x32d
dofileread() at netbsd:dofileread+0x89
sys_read() at netbsd:sys_read+0x99
syscall_plain() at netbsd:syscall_plain+0x1cb

Here the machine hangs hard and has to be power cycled...

This is on a dual-core Opteron machine w/ 6GB Ram, using lfs
for src, obj and dest if it matters...

NetBSD 4.99.32 (W2100Z_M2) #0: Wed Oct 10 12:19:54 MEST 2007
        ks@isunopti:/u/NetBSD/arch/amd64/obj/sys/arch/amd64/compile/W2100Z_M2
total memory = 5374 MB
avail memory = 5148 MB
SMBIOS rev. 2.33 @ 0xefeb0 (37 entries)
mainbus0 (root)
cpu0 at mainbus0 apid 0: (boot processor)
cpu0: AMD Opteron(tm) Processor 246, 1994.40 MHz
cpu0: AMD Power Management features: f<TTP,VID,FID,TS>
cpu0: WARNING: AMD errata present, BIOS upgrade may be
cpu0: WARNING: necessary to ensure reliable operation
cpu1 at mainbus0 apid 1: (application processor)
cpu1: AMD Opteron(tm) Processor 246, 1994.32 MHz
cpu1: AMD Power Management features: f<TTP,VID,FID,TS>

Any info I can provide for debugging when this happens next time?
I'll try with the old scheduler now...

Kurt