From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 6 11:43:46 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C2B31065672 for ; Thu, 6 Aug 2009 11:43:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id A92158FC1F for ; Thu, 6 Aug 2009 11:43:45 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n76B3aJq033086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 Aug 2009 14:03:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n76B3aH2068656; Thu, 6 Aug 2009 14:03:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n76B3a58068655; Thu, 6 Aug 2009 14:03:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 6 Aug 2009 14:03:36 +0300 From: Kostik Belousov To: Lucius Windschuh Message-ID: <20090806110335.GP1884@deviant.kiev.zoral.com.ua> References: <90a5caac0908051556j27e721e2m25a949ade16848c1@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BMxRdHzs7E+6Z52G" Content-Disposition: inline In-Reply-To: <90a5caac0908051556j27e721e2m25a949ade16848c1@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-emulation@freebsd.org Subject: Re: Linuxolator panic: Lock (rw) Name Cache exclusively locked X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2009 11:43:46 -0000 --BMxRdHzs7E+6Z52G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 06, 2009 at 12:56:08AM +0200, Lucius Windschuh wrote: > Hi. > I tried to install CA Wily Introscope 8.1, an enterprise application > performance monitoring framework, on FreeBSD. > It is Java-based and works, if installed. > Unfortunately, the installer panics my machine reproducably when it > exits after the installation: > panic: Lock (rw) Name Cache exclusively locked @ > /usr/src/sys/kern/vfs_cache.c:589 >=20 > I'm using -CURRENT r196074 (i386) at the moment. > Kernel config: http://sites.google.com/site/lwfreebsd/Home/files/kernelco= nfig-CURRENT.txt?attredirects=3D0 >=20 > I have a kernel dump for further analysis (the installation archive > may not be published, I suppose): >=20 > $ kgdb ... vmcore.12 > (kgdb) bt > #0 doadump () at pcpu.h:246 > #1 0xc063cd1e in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c= :419 > #2 0xc063cff2 in panic (fmt=3DVariable "fmt" is not available. > ) at /usr/src/sys/kern/kern_shutdown.c:575 > #3 0xc067e515 in witness_assert (lock=3D0xc0b160fc, flags=3DVariable > "flags" is not available. > ) > at /usr/src/sys/kern/subr_witness.c:2235 > #4 0xc063a1d5 in _rw_assert (rw=3D0xc0b160fc, what=3DVariable "what" is > not available. > ) > at /usr/src/sys/kern/kern_rwlock.c:1020 > #5 0xc063a80b in _rw_runlock (rw=3D0xc0b160fc, > file=3D0xc0905c58 "/usr/src/sys/kern/vfs_cache.c", line=3D589) > at /usr/src/sys/kern/kern_rwlock.c:526 > #6 0xc06b8297 in cache_lookup (dvp=3D0xc733c218, vpp=3D0xf63fcc70, cnp= =3D0xf63fcc00) > at /usr/src/sys/kern/vfs_cache.c:589 > #7 0xc06b837d in vfs_cache_lookup (ap=3D0xf63fcc48) > at /usr/src/sys/kern/vfs_cache.c:881 > #8 0xc08a79c2 in VOP_LOOKUP_APV (vop=3D0xc65ec880, a=3D0xf63fcc48) > at vnode_if.c:123 > #9 0xc0de7547 in linux_getcwd (td=3D0xc718e240, args=3D0xf63fccf8) > at vnode_if.h:54 > #10 0xc0898567 in syscall (frame=3D0xf63fcd38) > at /usr/src/sys/i386/i386/trap.c:1073 > #11 0xc087b8c0 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception= .s:261 > #12 0x00000033 in ?? () > Previous frame inner to this frame (corrupt stack?) >=20 > Panicing the kernel with getcwd() is strange. :-D Please try this patch. diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index f21f4af..7854803 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -416,7 +416,8 @@ retry_wlocked: if (dvp->v_cache_dd->nc_flag & NCF_ISDOTDOT) cache_zap(dvp->v_cache_dd); dvp->v_cache_dd =3D NULL; - goto unlock; + CACHE_WUNLOCK(); + return (0); } if (dvp->v_cache_dd->nc_flag & NCF_ISDOTDOT) *vpp =3D dvp->v_cache_dd->nc_vp; --BMxRdHzs7E+6Z52G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEUEARECAAYFAkp6uIcACgkQC3+MBN1Mb4gorwCWPw1LbrJBwMnOQiZJd9Ss1VnB QQCgsir2ffZbF/ZcnPebe/UPQJHQaUg= =gRqg -----END PGP SIGNATURE----- --BMxRdHzs7E+6Z52G--