Date: Mon, 1 Sep 2003 02:23:18 +0200 From: Pawel Jakub Dawidek <nick@garage.freebsd.pl> To: "Kenneth D. Merry" <ken@kdm.org> Cc: phk@FreeBSD.org Subject: Re: need some debugging help Message-ID: <20030901002318.GF47959@garage.freebsd.pl> In-Reply-To: <20030901001345.GE47959@garage.freebsd.pl> References: <20030830040357.GA42770@panzer.kdm.org> <20030901001345.GE47959@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030901002318.GF47959>