From owner-freebsd-current@FreeBSD.ORG Sun Aug 31 17:21: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 5B89E16A4C0; Sun, 31 Aug 2003 17:21:27 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id D295D43FD7; Sun, 31 Aug 2003 17:21:24 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 20DA13ABB2E; Mon, 1 Sep 2003 02:23:18 +0200 (CEST) Date: Mon, 1 Sep 2003 02:23:18 +0200 From: Pawel Jakub Dawidek To: "Kenneth D. Merry" Message-ID: <20030901002318.GF47959@garage.freebsd.pl> References: <20030830040357.GA42770@panzer.kdm.org> <20030901001345.GE47959@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="cLEoo22z2jxxEIZt" Content-Disposition: inline In-Reply-To: <20030901001345.GE47959@garage.freebsd.pl> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p3 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: current@FreeBSD.org cc: phk@FreeBSD.org Subject: Re: need some debugging help 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: Mon, 01 Sep 2003 00:21:27 -0000 --cLEoo22z2jxxEIZt Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 01, 2003 at 02:13:45AM +0200, Pawel Jakub Dawidek wrote: +> I was getting same panics while I was working on GEOM Gate. +> After many hours of debugging I've tracked this down - I've initialized +> a mutex, but I haven't destroy it. +>=20 +> As I susspect you're loading cd(4) as kld module? No, you don't need to load it as kld module, because you initiate this mutex on every function call (and mutex is locally allocated to), so try to put mtx_destroy() on the end of this function, this should help. (I hope there is no problem with calling msleep(9) with mutex from stack) --=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 --cLEoo22z2jxxEIZt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP1KRdT/PhmMH/Mf1AQHLwAP+O5QXf7dz1LV0J3LZ3EiIJ0rdYdMYA+fr Qf/vhkMC91Ai8BuNYgeyqhGAiV6/9/RlIMJ5lahfx9NVeDH29A0Q/lRktqANE3CJ NR3CX5GIejeGmCx/El8V4NBq7uIr/9Thcvr/HzaLfXcu1Hlx8pgwatEF3tEnK32h bOPdhrs+ZIA= =XX+H -----END PGP SIGNATURE----- --cLEoo22z2jxxEIZt--