From owner-freebsd-current@FreeBSD.ORG Mon Sep 11 10:02:37 2006 Return-Path: X-Original-To: current@freebsd.org 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 D0C4B16A403 for ; Mon, 11 Sep 2006 10:02:37 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id E286143DE7 for ; Mon, 11 Sep 2006 10:01:37 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id B616148A2B; Mon, 11 Sep 2006 12:01:31 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 03DFE48A26; Mon, 11 Sep 2006 12:01:26 +0200 (CEST) Date: Mon, 11 Sep 2006 12:01:18 +0200 From: Pawel Jakub Dawidek To: Kris Kennaway Message-ID: <20060911100117.GA92022@garage.freebsd.pl> References: <20060910194536.1b699733@Magellan.Leidinger.net> <20060910184359.GA7152@xor.obsecurity.org> <20060910230003.28fbc780@Magellan.Leidinger.net> <20060910211556.GA9924@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20060910211556.GA9924@xor.obsecurity.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: Alexander Leidinger , current@freebsd.org Subject: Re: panic: System call old.recv returning with 1 locks held X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 11 Sep 2006 10:02:37 -0000 --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 (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--