From owner-freebsd-current@FreeBSD.ORG Mon Sep 11 18:02:32 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 25D8D16A47E; Mon, 11 Sep 2006 18:02:32 +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 6EE2643D58; Mon, 11 Sep 2006 18:02:30 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id EE2A048A31; Mon, 11 Sep 2006 20:02:28 +0200 (CEST) Received: from localhost (dlg59.neoplus.adsl.tpnet.pl [83.24.36.59]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 6128545696; Mon, 11 Sep 2006 20:02:15 +0200 (CEST) Date: Mon, 11 Sep 2006 20:02:05 +0200 From: Pawel Jakub Dawidek To: Alexander Leidinger Message-ID: <20060911180205.GA44856@garage.freebsd.pl> References: <20060910194536.1b699733@Magellan.Leidinger.net> <20060910184359.GA7152@xor.obsecurity.org> <20060910230003.28fbc780@Magellan.Leidinger.net> <20060910211556.GA9924@xor.obsecurity.org> <20060911100117.GA92022@garage.freebsd.pl> <20060911194740.0c671c28@Magellan.Leidinger.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <20060911194740.0c671c28@Magellan.Leidinger.net> 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=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: rwatson@FreeBSD.org, current@freebsd.org, Kris Kennaway 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 18:02:32 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 11, 2006 at 07:47:40PM +0200, Alexander Leidinger wrote: > Quoting Pawel Jakub Dawidek (Mon, 11 Sep 2006 12:01:18 = +0200): >=20 > > 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. > >=20 > > 'show alllocks' has to show them when the kernel (and modules) is > > compiled with WITNESS. >=20 > exclusive sleep mutex so_snd r=3D0 (0xc2b204c4) locked @ kern/uipc_socket= =2Ec:984 [...] Much easier now. > How to track this down? Try this patch: http://people.freebsd.org/~pjd/patches/uipc_socket.c.2.patch PS. CCing rwatson@ as he might be interested. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFFBaSdForvXbEpPzQRAunTAKDMegqoUoNnf/tqHRaFmQ51TUyPhQCfeNPb g7QvbefCskmQXq+S79ZBwEY= =v2/y -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--