Subject: kern/21059: panic in setrunnable
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dogcow@babymeat.com>
List: netbsd-bugs
Date: 04/07/2003 16:56:10
>Number: 21059
>Category: kern
>Synopsis: panic in setrunnable
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 07 16:59:00 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Tom Spindler
>Release: NetBSD 1.6Q
>Organization:
>Environment:
System: NetBSD beefcake.babymeat.com 1.6Q NetBSD 1.6Q (BEEFCAKE) #31: Mon Apr 7 01:28:01 PDT 2003 dogcow@beefcake.babymeat.com:/usr/src/sys/arch/i386/compile/BEEFCAKE i386
Architecture: i386
Machine: i386
>Description:
the panic happened when I was attempting to fg a backgrounded pthreads-using
xmms. I can upload the core somewhere if need be.
(gdb) bt
#0 0x1 in ?? ()
#1 0xc022baca in cpu_reboot (howto=256, bootstr=0x0)
at ../../../../arch/i386/i386/machdep.c:874
#2 0xc01d2b2b in panic () at ../../../../kern/subr_prf.c:246
#3 0xc01c7009 in setrunnable (l=0xd3b44784)
at ../../../../kern/kern_synch.c:1029
#4 0xc01cbf2a in itimerfire (pt=0xd3a8aa90)
at ../../../../kern/kern_time.c:1210
#5 0xc01cb681 in realtimerexpire (arg=0xd3a8aa90)
at ../../../../kern/kern_time.c:902
#6 0xc01cc7de in softclock (v=0x0) at ../../../../kern/kern_timeout.c:399
#7 0xc0226bd1 in softintr_dispatch (which=0)
at ../../../../arch/x86/x86/softintr.c:104
#8 0xc010289d in Xsoftclock ()
(gdb) up
#1 0xc022baca in cpu_reboot (howto=256, bootstr=0x0)
at ../../../../arch/i386/i386/machdep.c:874
874 dumpsys();
(gdb) up
#2 0xc01d2b2b in panic () at ../../../../kern/subr_prf.c:246
246 cpu_reboot(bootopt, NULL);
(gdb) up
#3 0xc01c7009 in setrunnable (l=0xd3b44784)
at ../../../../kern/kern_synch.c:1029
1029 panic("setrunnable");
(gdb) up
#4 0xc01cbf2a in itimerfire (pt=0xd3a8aa90)
at ../../../../kern/kern_time.c:1210
1210 setrunnable(sa->sa_idle);
(gdb) print sa
$1 = (struct sadata *) 0x0
(gdb) print *(p->p_sa)
$7 = {sa_lock = {lock_data = 0}, sa_flag = 0, sa_upcall = 0xbda5a7bc,
sa_vp = 0xd3b44784, sa_woken = 0x0, sa_idle = 0xd3b44784,
sa_concurrency = 1, sa_lwpcache = {lh_first = 0xd3b44904}, sa_ncached = 4,
sa_stacks = 0xc09ba600, sa_nstacks = 9, sa_upcalls = {sqh_first = 0x0,
sqh_last = 0xd3e96060}}
(gdb) print sched_lock
$15 = {lock_data = 0}
>How-To-Repeat:
You can often cause a reboot by doing this:
phoenix (or some other pthreads-using program)
^Z
fg
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: