From owner-freebsd-current Mon Apr 8 10:33:47 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail16.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by hub.freebsd.org (Postfix) with ESMTP id E508337B41E for ; Mon, 8 Apr 2002 10:33:42 -0700 (PDT) Received: (qmail 3730 invoked from network); 8 Apr 2002 17:33:40 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 8 Apr 2002 17:33:40 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g38HYRv45448; Mon, 8 Apr 2002 13:34:27 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200204081558.g38FwmFg049414@bunrab.catwhisker.org> Date: Mon, 08 Apr 2002 12:33:40 -0400 (EDT) From: John Baldwin To: David Wolfskill Subject: RE: panic "sleeping without a mutex" in usb_task_thread Cc: current@freebsd.org, joe@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 08-Apr-2002 David Wolfskill wrote: > On my laptop (but not the build machine; the latter may not have any USB > devices) I get the following panic after builing, installing, & trying > to boot -CURRENT from today. (CVSup log below panic trace.) > > an0: Ethernet address 00:40:96:32:19:a9 > bpf: an0 attached > panic: sleeping without a mutex > Debugger("panic") > Stopped at Debugger+0x40: xorl %eax,%eax > db> trace > Debugger(c03d647c) at Debugger+0x40 > panic(c03d6cac,c021ffec,c8e4e000,c8e4e100,c8e4e000) at panic+0x70 > msleep(c0442d98,0,5c,c03c7784,0) at msleep+0x23 > usb_task_thread(0,c8e6ad48,c8e4e100,c021ffec,0) at usb_task_thread+0x23 > fork_exit(c021ffec,0,c8e6ad48) at fork_exit+0x8c > fork_trampoline() at fork_trampoline+0x37 > db>show locks > db>show witness [scrolls off screen] > db> > > [Above was hand-transcribed; I don't have a serial console on my laptop, > and I'm not running VMware.] > > Recent CVSup history: > freebeast(4.5-S)[1] tail /var/log/cvsup-history.log > CVSup begin from cvsup14.freebsd.org at Thu Apr 4 03:47:06 PST 2002 > CVSup ended from cvsup14.freebsd.org at Thu Apr 4 03:53:56 PST 2002 > CVSup begin from cvsup14.freebsd.org at Fri Apr 5 03:47:02 PST 2002 > CVSup ended from cvsup14.freebsd.org at Fri Apr 5 03:54:13 PST 2002 > CVSup begin from cvsup14.freebsd.org at Sat Apr 6 03:47:02 PST 2002 > CVSup ended from cvsup14.freebsd.org at Sat Apr 6 03:54:32 PST 2002 > CVSup begin from cvsup14.freebsd.org at Sun Apr 7 03:47:03 PDT 2002 > CVSup ended from cvsup14.freebsd.org at Sun Apr 7 03:53:32 PDT 2002 > CVSup begin from cvsup14.freebsd.org at Mon Apr 8 03:47:02 PDT 2002 > CVSup ended from cvsup14.freebsd.org at Mon Apr 8 03:53:43 PDT 2002 > freebeast(4.5-S)[2] > > I can leave it in this condition for a while, if it would be helpful to > poke around at all. show witness isn't useful to most people so I would avoid it unless someone explicitly asks for it. The problem here is likely due to the usb_task_thread() not locking Giant when it starts up. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message