Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2006 12:01:18 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Alexander Leidinger <Alexander@Leidinger.net>, current@freebsd.org
Subject:   Re: panic: System call old.recv returning with 1 locks held
Message-ID:  <20060911100117.GA92022@garage.freebsd.pl>
In-Reply-To: <20060910211556.GA9924@xor.obsecurity.org>
References:  <20060910194536.1b699733@Magellan.Leidinger.net> <20060910184359.GA7152@xor.obsecurity.org> <20060910230003.28fbc780@Magellan.Leidinger.net> <20060910211556.GA9924@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Sep 10, 2006 at 05:15:56PM -0400, Kris Kennaway wrote:
> On Sun, Sep 10, 2006 at 11:00:03PM +0200, Alexander Leidinger wrote:
> > Quoting Kris Kennaway <kris@obsecurity.org> (Sun, 10 Sep 2006 14:43:59 =
-0400):
> >=20
> > > Enable DEBUG_LOCKS and DEBUG_VFS_LOCKS then run 'show lockedvnods'
> > > from DDB to find out where the lockmgr lock was acquired.
> >=20
> > I've enabled them (and WITNESS, INVARIANTS and DIAGNOSTICS) and rebuild
> > the kernel. Not much files where rebuild.
>=20
> That's a warning sign; almost every file in the kernel should have
> been rebuilt when you turned on WITNESS and INVARIANTS.  Perhaps you
> didn't run 'make depend'?
>=20
> > show lockedvnods did not show any locks.
>=20
> Odd, I thought your initial panic was from a held lockmgr lock, so it
> should have showed up here.

In HEAD (not sure if it was MFCed) jhb@ added code to track number of
mutexes/sx-locks acquired/released. So bascially this panic can happen
when you leak a lock of any kind.

'show alllocks' has to show them when the kernel (and modules) is
compiled with WITNESS.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--OXfL5xGRrasGEqWY
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)

iD8DBQFFBTPtForvXbEpPzQRAg8nAKDwE3ouyO+VRPGlwpVo2kb6ojsyWgCdEuxZ
Hm6amt0U6zzvWb8jUjIma5I=
=cgtA
-----END PGP SIGNATURE-----

--OXfL5xGRrasGEqWY--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060911100117.GA92022>