Subject: kern/21120: panic: setrunqueue
To: None <gnats-bugs@gnats.netbsd.org>
From: Frank Kardel <kardel@acm.org>
List: netbsd-bugs
Date: 04/13/2003 12:19:27
>Number:         21120
>Category:       kern
>Synopsis:       -current 20030412 panic: setrunque
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 13 03:20:00 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Frank Kardel
>Release:        NetBSD 1.6R-current-20030412
>Organization:
	
>Environment:
	
	
System: NetBSD pip 1.6R NetBSD 1.6R (PIP) #0: Sun Apr 13 01:10:56 MEST 2003 kardel@pip:/src/NetBSD/netbsd/sys/arch/i386/compile/PIP i386
Architecture: i386
Machine: i386
>Description:
	After running kde 3.1, pkg_comp build x11/kde3 (for 3.1.1), systrace -A setiathome (to eventually jail seti unless a path for NetBSD
	comes around) and xmms, i got the setrunqueue panic. 

(gdb) target kcore netbsd.2.core
panic: blkfree: freeing free frag
#0  0x1 in ?? ()
(gdb) where
#0  0x1 in ?? ()
#1  0xc02e0a46 in cpu_reboot (howto=260, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:875
#2  0xc0259f5b in panic () at ../../../../kern/subr_prf.c:246
#3  0xc024e56e in setrunqueue (l=0xe4641c8c)
    at ../../../../kern/kern_synch.c:1189
#4  0xc024e325 in setrunnable (l=0xe4641c8c)
    at ../../../../kern/kern_synch.c:1052
#5  0xc0253282 in itimerfire (pt=0xe4cc81a4)
    at ../../../../kern/kern_time.c:1210
#6  0xc02529d9 in realtimerexpire (arg=0xe4cc81a4)
    at ../../../../kern/kern_time.c:902
#7  0xc0253b36 in softclock (v=0x0) at ../../../../kern/kern_timeout.c:399
#8  0xc02dbc6d in softintr_dispatch (which=0)
    at ../../../../arch/x86/x86/softintr.c:104
#9  0xc0102901 in Xsoftclock ()
#10 0xc024d7af in ltsleep (ident=0xc046c7f8, priority=516, 
    wmesg=0xc03bcc3d "aiodoned", timo=0, interlock=0xc046c800)
    at x86/intr.h:163
#11 0xc02c53ee in uvm_aiodone_daemon (arg=0xe3832580)
    at ../../../../uvm/uvm_pdaemon.c:305
(gdb) up
#1  0xc02e0a46 in cpu_reboot (howto=260, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:875
875                     dumpsys();
(gdb) up
#2  0xc0259f5b in panic () at ../../../../kern/subr_prf.c:246
246             cpu_reboot(bootopt, NULL);
(gdb) up
#3  0xc024e56e in setrunqueue (l=0xe4641c8c)
    at ../../../../kern/kern_synch.c:1189
1189                    panic("setrunqueue");
(gdb) list
1184            struct lwp *prev;
1185            int whichq;
1186
1187    #ifdef DIAGNOSTIC
1188            if (l->l_back != NULL || l->l_wchan != NULL || l->l_stat != LSRUN)
1189                    panic("setrunqueue");
1190    #endif
1191            whichq = l->l_priority / 4;
1192            sched_whichqs |= (1<<whichq);
1193            rq = &sched_qs[whichq];
(gdb) 
>How-To-Repeat:
	put some workload on -current-20030412 kernel (also hosed my UFS2 partition - separate PR).
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: