From owner-freebsd-smp Tue Oct 3 2:23:10 2000 Delivered-To: freebsd-smp@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-176-106.dsl.snfc21.pacbell.net [63.202.176.106]) by hub.freebsd.org (Postfix) with ESMTP id 0B87537B502 for ; Tue, 3 Oct 2000 02:23:08 -0700 (PDT) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.9.3) with ESMTP id e939OOh05799; Tue, 3 Oct 2000 02:24:26 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200010030924.e939OOh05799@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Mark Murray Cc: Jason Evans , freebsd-smp@FreeBSD.ORG Subject: Re: witness code status? In-reply-to: Your message of "Tue, 03 Oct 2000 11:12:11 +0200." <200010030912.e939CDL06411@grimreaper.grondar.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Oct 2000 02:24:24 -0700 From: Mike Smith Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > I (and others) have been running kernels with the witness code enabled for > > over a month. The witness code's purpose is to detect lock cycles that > > could cause deadlock, among other incorrect mutex uses. The stack trace > > and panic message in your email seem indicate a programming error. In > > other words, the witness code is doing its job. > > Jason, > > I'd like to ask your help on this; It seems that turning WITNESS on causes > the /dev/random driver to screw up royally. > > I thought I was quite careful about that. Now, I'm a bit out of my depth. > > Could you give me a hand? ... > > > panic: mutex_enter: MTX_DEF on MTX_SPIN mutex random harvest\ You initialised the 'random harvest' mutex with MTX_SPIN, but you are trying to acquire it with MTX_DEF. You probably don't want a spin mutex for this anyway. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message