From owner-freebsd-current@FreeBSD.ORG Sun Sep 10 21:15:57 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 8FB3216A403 for ; Sun, 10 Sep 2006 21:15:57 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4369D43D45 for ; Sun, 10 Sep 2006 21:15:57 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 27C8E1A3C20; Sun, 10 Sep 2006 14:15:57 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 903D751486; Sun, 10 Sep 2006 17:15:56 -0400 (EDT) Date: Sun, 10 Sep 2006 17:15:56 -0400 From: Kris Kennaway To: Alexander Leidinger Message-ID: <20060910211556.GA9924@xor.obsecurity.org> References: <20060910194536.1b699733@Magellan.Leidinger.net> <20060910184359.GA7152@xor.obsecurity.org> <20060910230003.28fbc780@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: <20060910230003.28fbc780@Magellan.Leidinger.net> User-Agent: Mutt/1.4.2.2i Cc: 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: Sun, 10 Sep 2006 21:15:57 -0000 --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 10, 2006 at 11:00:03PM +0200, Alexander Leidinger wrote: > Quoting Kris Kennaway (Sun, 10 Sep 2006 14:43:59 -0= 400): >=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. 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'? > show lockedvnods did not show any locks. Odd, I thought your initial panic was from a held lockmgr lock, so it should have showed up here. > Other show XXX commands did > show nothing too. show lockchain showed a process. It's send01 (a LTP > testcase). The ddb bt command showed not much more. I got "syscall > -90" (dup2?) and the registers eip=3D0x28120706, esp=3D0xbfbfe9fc and > ebp=3D0xbfbfea28. >=20 > While rebooting I got another panic: This panic also looks like a symptom of an inconsistent kernel: > at ../../../i386/i386/trap.c:461 #6 0xc057fefa in calltrap () > at ../../../i386/i386/exception.s:138 #7 0xc04e3035 in vfs_filteropt > (opts=3D0xc05b95d6, legal=3D0xc2960ae4) at ../../../kern/vfs_mount.c:1648 > #8 0xc2949dd9 in ?? () #9 0xc05b95d6 in ?? () #10 0xc2960ae4 in ?? () > #11 0x000003a1 in ?? () #12 0x00000008 in ?? () #13 0xc0607758 in > w_lock_list_free () #14 0xc05b46a4 in ?? () #15 0xc05aff94 in ?? () #16 > 0xc2460010 in ?? () #17 0xd49498d8 in ?? () #18 0xc04ba3fb in > fixup_filename (file=3D0xc05ef780 " ???^???") > at ../../../kern/subr_witness.c:764 #19 0xc04e2244 in vfs_donmount > (td=3D0xc26c66c0, fsflags=3D0xc292d000, fsoptions=3D0xd4949bb4) > at ../../../kern/vfs_mount.c:947 #20 0xc04e3962 in kernel_mount > (ma=3D0xc26c3610, flags=3D0x10000000) at pcpu.h:163 #21 0xc2949671 in ?? = () Kris --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFBICMWry0BWjoQKURAjs/AJ9scyW8eS5CeqD3B6oYj4xJ2dFj7wCfQ7cp RAykjxqa8VyWxLMhkRpcD6U= =3old -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd--