From owner-freebsd-current Thu May 10 11:30:17 2001 Delivered-To: freebsd-current@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id 4E38237B424; Thu, 10 May 2001 11:30:05 -0700 (PDT) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f4AITvP60499; Thu, 10 May 2001 11:29:57 -0700 (PDT) Date: Thu, 10 May 2001 11:29:57 -0700 (PDT) From: David Wolfskill Message-Id: <200105101829.f4AITvP60499@bunrab.catwhisker.org> To: jhb@FreeBSD.ORG, sziszi@petra.hos.u-szeged.hu Subject: RE: Today's special: nessusd panics -CURRENT Cc: freebsd-current@FreeBSD.ORG In-Reply-To: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Date: Thu, 10 May 2001 09:52:03 -0700 (PDT) >From: John Baldwin >> witness_get: witness exhausted >> exclusive(sleep mutex) Giant(0xc044a760) locked @ ../../i386/i386/trap.c:1169 >> panic: system call open returning with mutex(s) held >Ok, I see what's broken. I don't know how you are out of witness's though. >We don't have enough types of mutexes for that to happen. Try this patch: >Index: subr_witness.c >=================================================================== >RCS file: /usr/cvs/src/sys/kern/subr_witness.c,v >retrieving revision 1.70 >diff -u -r1.70 subr_witness.c >--- subr_witness.c 2001/05/04 17:15:16 1.70 >+++ subr_witness.c 2001/05/10 16:39:27 >@@ -1222,6 +1222,9 @@ > ("%s: p != curproc and we aren't in the debugger", __func__)); > KASSERT(!witness_cold, ("%s: witness_cold", __func__)); >+ if (!db_active && witness_dead) >+ return (0); >+ > nheld = witness_list_locks(&p->p_sleeplocks); > /* >-- Since I didn't use the "-l" flag to patch, it didn't apply, so I did it by hand (and subsequently thought to check for whitespace issues). But the patch appears to work; I'm up & running: FreeBSD m147.whistle.com 5.0-CURRENT FreeBSD 5.0-CURRENT #59: Thu May 10 04:06:04 PDT 2001 root@:/common/C/obj/usr/src/sys/LAPTOP_30W i386 (I had encountered the witness panic before applying the patch.) Only annoyance I'm encountering with it so far is involving my use of ssh; perhaps I'm doing something Really Weird, but in any case, that probably deserves a different Subject:. Cheers, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message