From owner-freebsd-current Thu May 3 9:51:43 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id D4ED137B424 for ; Thu, 3 May 2001 09:51:39 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f43GpXG71885; Thu, 3 May 2001 09:51:34 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 03 May 2001 09:50:48 -0700 (PDT) From: John Baldwin To: Matthew Jacob Subject: RE: lock order reversals, anyone? Cc: current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 03-May-01 Matthew Jacob wrote: > > T-o-T about 24 hours ago: > >> lock order reversal >> 1st lockmgr interlock last acquired @ /usr/src/sys/kern/kern_lock.c:239 >> 2nd 0xfffffe0025df8548 process lock @ /usr/src/sys/kern/kern_exit.c:542 >> 3rd 0xfffffe0000aab8d0 lockmgr interlock @ > /usr/src/sys/kern/kern_lock.c:239 This is new. We shouldn't be holding the proc lock and dinking with lockmgr at the same time. (Well, in theory at least.) >> acquiring duplicate lock of same type: "allproc" >> 1st @ /usr/src/sys/kern/kern_proc.c:609 >> 2nd @ /usr/src/sys/kern/kern_proc.c:146 This is old. This is really a case of recursion, I'm currently hacking on witness some more which will fix this. >> lock order reversal >> 1st vnode interlock last acquired @ /usr/src/sys/ufs/ffs/ffs_vfsops.c:397 >> 2nd 0xfffffc000080f218 mntvnode @ /usr/src/sys/ufs/ffs/ffs_vfsops.c:464 >> 3rd 0xfffffe0026918080 vnode interlock @ /usr/src/sys/kern/vfs_subr.c:1881 This is quite old. I have some h0h0 patches to fix these, but I'm not sure that they are actually right: http://www.FreeBSD.org/~jhb/patches/mntvnode.patch >> pid 288 (nsrexecd), uid 0: exited on signal 11 (core dumped) > > (oh, yeah, a 4.1 built executable is dying, charming) Cute. :-/ -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message