From owner-freebsd-current@FreeBSD.ORG Tue Nov 25 05:52:27 2003 Return-Path: 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 6F38616A4CF; Tue, 25 Nov 2003 05:52:27 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA38A43FCB; Tue, 25 Nov 2003 05:52:25 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 1256E3ABB2D; Tue, 25 Nov 2003 14:51:33 +0100 (CET) Date: Tue, 25 Nov 2003 14:51:32 +0100 From: Pawel Jakub Dawidek To: Christian Laursen Message-ID: <20031125135132.GA76130@garage.freebsd.pl> References: <86ptfgvje8.fsf@borg.borderworlds.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <86ptfgvje8.fsf@borg.borderworlds.dk> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p13 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-current@freebsd.org Subject: Re: panic: sleeping without a mutex (acd related) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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 Nov 2003 13:52:27 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 25, 2003 at 11:21:03AM +0100, Christian Laursen wrote: +> I have been experiencing some random lockups after upgrading from +> 5.1-RELEASE to 5.2-BETA. +>=20 +> I then wen on and enabled all the debug options in my kernel config +> hoping to be able to find the cause. +>=20 +> But now I cannot boot at all. In the end of the boot process when +> detecting ATA drives, I get this: +>=20 +> ad0: 76319MB [155061/16/63] at ata0-master UDMA100 = =20 +> acd0-5: CDROM with 6 CD changer at ata1-master PIO4 = =20 +> acd6: DVDROM at ata1-slave PIO4 = =20 +> panic: sleeping without a mutex = =20 +> Debugger("panic") = =20 +> Stopped at Debugger+0x54: xchgl %ebx,in_Debugger.0 = =20 +> db> = =20 +> db> trace = =20 +> Debugger(c06e3744,c07549a0,c06e3ec9,d861ab60,100) at Debugger+0x54 = =20 +> panic(c06e3ec9,0,c06e3eb8,c06d6584,10) at panic+0xd5 = =20 +> msleep(c45173d8,0,4c,c06d6584,0) at msleep+0x505 = =20 +> acd_geom_access(c452de00,1,0,0,0) at acd_geom_access+0x115 = =20 Yeah. There are two calls of tsleep(9) without timeout set (in line 499, 509), so this KASSERT is reached: KASSERT(timo !=3D 0 || mtx_owned(&Giant) || mtx !=3D NULL, ("sleeping without a mutex")); --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP8NeZD/PhmMH/Mf1AQFg3AQAkpuebVl8VEJuMVTIVoPCLr6LdkPv/eEn 5cofj18/OWBf7BMKEDoBlBmisypmrRhvO2tyarYs/vCT+tA7xclidheQU3hExIc3 oWoPnD+wkIdMFTkfDkDciwCPmdcBb3p+RspEy/Mzv60MDP2MUeiYmp8w5ZNDAL3M sj0nl7O1A8s= =NwqH -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--