Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2005 00:26:51 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        freebsd-stable@freebsd.org
Subject:   panic: Assertion besttd != NULL failed at ../../../kern/subr_sleepqueue.c:676
Message-ID:  <20050119062651.GA5122@dan.emsphone.com>

next in thread | raw e-mail | index | archive | help

Got this while running a Java proxy server under libthr:

FreeBSD dan.emsphone.com 5.3-STABLE FreeBSD 5.3-STABLE #387: Thu Jan 13 14:43:03 CST 2005     zsh@dan.emsphone.com:/usr/src/sys/i386/compile/DANSMP  i386

panic: Assertion besttd != NULL failed at ../../../kern/subr_sleepqueue.c:676
cpuid = 1
KDB: stack backtrace:
panic(c07822b6,c078843f,c078825f,2a4,ffffffff) at panic+0x1cf
sleepq_signal(c3a9b4b0,0,ffffffff,e7461ce0,c05a74eb) at sleepq_signal+0xf0
wakeup_one(c3a9b4b0,0,c07863e3,12e,be3173f0) at wakeup_one+0x20
thr_wake(c2bb84b0,e7461d14,4,16,1) at thr_wake+0xdb
syscall(3123002f,2f,4c98002f,811bfc0,83f4400) at syscall+0x137
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (443, FreeBSD ELF32, thr_wake), eip = 0x280e658f, esp = 0xbe3173ec, ebp = 0xbe317418 --- 
panic: mi_switch: switch in a critical section
cpuid = 1

The last two lines repeated forever until I reset the box, so no
coredump, but the stack is almost identical to a panic I got back in
November and did get a trace on (the crashdump is long gone though).

#0  doadump () at pcpu.h:159
#1  0xc059aa86 in boot (howto=260) at ../../../kern/kern_shutdown.c:397
#2  0xc059a55b in panic (fmt=0xc077e446 "Assertion %s failed at %s:%d") at ../../../kern/kern_shutdown.c:553
#3  0xc05bcb5c in sleepq_remove_thread (sq=0xc3394dc0, td=0x0) at ../../../kern/subr_sleepqueue.c:594
#4  0xc05bd47d in sleepq_signal (wchan=0xc2c5d7d0, flags=0, pri=-1) at ../../../kern/subr_sleepqueue.c:675
#5  0xc05a1d80 in wakeup_one (ident=0x0) at ../../../kern/kern_synch.c:266
#6  0xc05a5dab in thr_wake (td=0xc38abaf0, uap=0x0) at ../../../kern/kern_thr.c:303
#7  0xc072a797 in syscall (frame={tf_fs = 819527727, tf_es = 1285816367, tf_ds = -1078001617, tf_edi = 135378944, tf_esi = 137891840, tf_ebp = -1173986296, tf_isp = -419791500, tf_ebx = 671700552, tf_edx = 138204160, tf_ecx = 0, tf_eax = 443, tf_trapno = 22, tf_err = 2, tf_eip = 672032143, tf_cs = 31, tf_eflags = 582, tf_esp = -1173986340, tf_ss = 47}) at ../../../i386/i386/trap.c:1001
#8  0xc07168af in Xint0x80_syscall () at ../../../i386/i386/exception.s:201

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050119062651.GA5122>