From owner-freebsd-bugs Thu Apr 3 16:50:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA01228 for bugs-outgoing; Thu, 3 Apr 1997 16:50:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA01214; Thu, 3 Apr 1997 16:50:04 -0800 (PST) Date: Thu, 3 Apr 1997 16:50:04 -0800 (PST) Message-Id: <199704040050.QAA01214@freefall.freebsd.org> To: freebsd-bugs Cc: From: Tor Egge Subject: Re: kern/3168: Panic: lockmgr: locking against myself Reply-To: Tor Egge Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/3168; it has been noted by GNATS. From: Tor Egge To: sysseh@devetir.qld.gov.au Cc: FreeBSD-gnats-submit@freebsd.org, toor@dyson.iquest.net Subject: Re: kern/3168: Panic: lockmgr: locking against myself Date: Fri, 04 Apr 1997 02:42:38 +0200 > > >Number: 3168 > >Category: kern > >Synopsis: Machine crashes when starting X or xdm I got a similar crash (same stack trace). How-To-Repeat: rm -f bad touch bad chmod 755 bad ./bad Fix: Index: kern_exec.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_exec.c,v retrieving revision 1.53 diff -c -r1.53 kern_exec.c *** kern_exec.c 1997/03/31 11:10:55 1.53 --- kern_exec.c 1997/04/04 00:09:11 *************** *** 160,167 **** */ error = exec_check_permissions(imgp); ! if (error) goto exec_fail_dealloc; /* * Get the image header, which we define here as meaning the first --- 160,169 ---- */ error = exec_check_permissions(imgp); ! if (error) { ! VOP_UNLOCK(imgp->vp, 0, p); goto exec_fail_dealloc; + } /* * Get the image header, which we define here as meaning the first