Subject: panic: spinlock_switchcheck: CPU 0 has 1 spin locks
To: None <current-users@NetBSD.org>
From: Chris Tribo <ctribo@dtcc.edu>
List: current-users
Date: 07/26/2006 12:18:29
In my quest to reproduce the previous panic I found a new one

-bash-3.1# ps -aux
panic: spinlock_switchcheck: CPU 0 has 1 spin locks
cpu_Debugger(c096d520,c3e0c40c,0,ce535a48,293) at netbsd:cpu_Debugger 
+0x4
panic(c089d84c,0,1,c08ed280,ce518920) at netbsd:panic+0x141
spinlock_switchcheck(400,a,0,ce518920,ce535bdc) at  
netbsd:spinlock_switchcheck+0x7b
kauth_authorize_action(cd563fa8,ce5083e4,3,ce518920,0) at  
netbsd:kauth_authorize_action+0x14
kauth_authorize_process(ce5083e4,3,ce518920,0,0) at  
netbsd:kauth_authorize_process+0x23
sysctl_doeproc(ce535be4,4,0,ce535c0c,0) at netbsd:sysctl_doeproc+0x159
sysctl_dispatch(ce535bdc,6,0,ce535c0c,0) at netbsd:sysctl_dispatch+0x8d
sys___sysctl(ce4dec94,ce535c48,ce535c68,0,bbb9f000) at  
netbsd:sys___sysctl+0x9a
syscall_plain() at netbsd:syscall_plain+0x1a5
--- syscall (number 202) ---
0xbbba3c9b:

db{1} mach cpu 0
using CPU 0
netbsd:cpu_switch+0xda:


#0  0x7d693000 in ?? ()
#1  0xc04b2063 in cpu_reboot (howto=260, bootstr=0x0)
     at /usr/src/sys/arch/i386/i386/machdep.c:862
#2  0xc01c3ce8 in db_reboot_cmd (addr=-1064168736, have_addr=0,
     count=-1071884995, modif=0xce5357c4 "?\022\222?4")
     at /usr/src/sys/ddb/db_command.c:750
#3  0xc01c3944 in db_command (last_cmdp=0xc08dad7c,  
cmd_table=0xc06da3e0)
     at /usr/src/sys/ddb/db_command.c:508
#4  0xc01c3c34 in db_command_loop () at /usr/src/sys/ddb/db_command.c: 
296
#5  0xc01c66ef in db_trap (type=1, code=0) at /usr/src/sys/ddb/ 
db_trap.c:101
#6  0xc04ae8e9 in kdb_trap (type=1, code=0, regs=0xce5359dc)
     at /usr/src/sys/arch/i386/i386/db_interface.c:226
#7  0xc04bd4bf in trap (frame=0xce5359dc)
     at /usr/src/sys/arch/i386/i386/trap.c:313
#8  0xc010c0b6 in calltrap ()
#9  0xc0429c8d in panic (
     fmt=0xc089d84c "spinlock_switchcheck: CPU %lu has %lu spin locks")
     at /usr/src/sys/kern/subr_prf.c:243
#10 0xc0401cdb in spinlock_switchcheck () at /usr/src/sys/kern/ 
kern_lock.c:482
#11 0xc03f3ccc in kauth_authorize_action (scope=0xcd563fa8,  
cred=0xce5083e4,
     action=3, arg0=0xce518920, arg1=0x0, arg2=0x0, arg3=0x0)
     at /usr/src/sys/kern/kern_auth.c:689
#12 0xc03f3d9f in kauth_authorize_process (cred=0xce5083e4, action=3,
     p=0xce518920, arg1=0x0, arg2=0x0, arg3=0x0)
     at /usr/src/sys/kern/kern_auth.c:831
#13 0xc03f21f1 in sysctl_doeproc (name=0xce535be4, namelen=4, oldp=0x0,
     oldlenp=0xce535c0c, newp=0x0, newlen=0, oname=0xce535bdc,  
l=0xce4dec94,
     rnode=0xc37680e0) at /usr/src/sys/kern/init_sysctl.c:2207
#14 0xc0418909 in sysctl_dispatch (name=0xce535bdc, namelen=6, oldp=0x0,
     oldlenp=0xce535c0c, newp=0x0, newlen=0, oname=0xce535bdc,  
l=0xce4dec94,
     rnode=0xc37680e0) at /usr/src/sys/kern/kern_sysctl.c:434
#15 0xc0418bda in sys___sysctl (l=0xce4dec94, v=0xce535c48,  
retval=0xce535c68)
     at /usr/src/sys/kern/kern_sysctl.c:297
#16 0xc04bcbb5 in syscall_plain (frame=0xce535c88)
     at /usr/src/sys/arch/i386/i386/syscall.c:144