From owner-freebsd-current@FreeBSD.ORG Tue Oct 25 23:09:28 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FBCC16A41F for ; Tue, 25 Oct 2005 23:09:28 +0000 (GMT) (envelope-from emaste@phaedrus.sandvine.ca) Received: from mailserver.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id C254F43D48 for ; Tue, 25 Oct 2005 23:09:27 +0000 (GMT) (envelope-from emaste@phaedrus.sandvine.ca) Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by mailserver.sandvine.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 25 Oct 2005 19:09:03 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 12627) id 2788E13653; Tue, 25 Oct 2005 19:09:26 -0400 (EDT) Date: Tue, 25 Oct 2005 19:09:26 -0400 From: Ed Maste To: freebsd-current@freebsd.org Message-ID: <20051025230925.GA4354@sandvine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 25 Oct 2005 23:09:03.0953 (UTC) FILETIME=[17B03C10:01C5D9B9] Subject: panic: trying to sleep while sleeping is prohibited (from ttyinfo) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2005 23:09:28 -0000 I just got this panic from my 7.0-CURRENT laptop (Thinkpad T20), cvsup'd as of Oct 11. I was editing a file in vi at the time. -ed root@laptop# uname -a FreeBSD laptop 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Tue Oct 11 18:03:58 EDT 2005 emaste_bsd-build.phaedrus.sandvine.com:/d2/emaste/head/obj/d2/emaste/head/sr c/sys/GENERIC i386 (kgdb) bt [...] #9 0xc063805f in panic ( fmt=0xc0867c0a "trying to sleep while sleeping is prohibited") at /d2/emaste/head/src/sys/kern/kern_shutdown.c:539 #10 0xc065555c in sleepq_add (wchan=0xc092e764, lock=0xc092e1c0, wmesg=0x12
, flags=1) at /d2/emaste/head/src/sys/kern/subr_sleepqueue.c:273 #11 0xc0613636 in cv_wait (cvp=0xc092e764, mp=0xc092e1c0) at /d2/emaste/head/src/sys/kern/kern_condvar.c:127 #12 0xc063d0a0 in _sx_slock (sx=0xc092e740, file=0xc086adef "/d2/emaste/head/src/sys/kern/tty.c", line=2564) at /d2/emaste/head/src/sys/kern/kern_sx.c:122 #13 0xc06691f0 in ttyinfo (tp=0xc1bac000) at /d2/emaste/head/src/sys/kern/tty.c:2564 #14 0xc066627e in ttyinput (c=20, tp=0xc1bac000) at /d2/emaste/head/src/sys/kern/tty.c:626 #15 0xc07da749 in sckbdevent (thiskbd=0xc098afa0, event=0, arg=0xc09aee80) at linedisc.h:122 #16 0xc07b6d74 in atkbd_intr (kbd=0xc098afa0, arg=0x0) at /d2/emaste/head/src/sys/dev/atkbdc/atkbd.c:486 #17 0xc07b7e6a in atkbdintr (arg=0xc1033000) at /d2/emaste/head/src/sys/dev/atkbdc/atkbd_atkbdc.c:174 #18 0xc06258bc in ithread_loop (arg=0xc19d8900) at /d2/emaste/head/src/sys/kern/kern_intr.c:547 #19 0xc0624cc8 in fork_exit (callout=0xc0625778 , arg=0xc19d8900, frame=0xd44a5d38) at /d2/emaste/head/src/sys/kern/kern_fork.c:789 #20 0xc07e780c in fork_trampoline () at /d2/emaste/head/src/sys/i386/i386/exception.s:208 (kgdb) frame 12 [...] (kgdb) p *sx $2 = {sx_object = {lo_class = 0xc08cc8ac, lo_name = 0xc0864442 "proctree", lo_type = 0xc0864442 "proctree", lo_flags = 3866624, lo_list = { tqe_next = 0xc092e780, tqe_prev = 0xc092e710}, lo_witness = 0xc093fa38}, sx_lock = 0xc092e1c0, sx_cnt = -1, sx_shrd_cv = {cv_description = 0xc0864442 "proctree", cv_waiters = 1}, sx_shrd_wcnt = 1, sx_excl_cv = {cv_description = 0xc0864442 "proctree", cv_waiters = 0}, sx_excl_wcnt = 0, sx_xholder = 0xc344d300}