Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Oct 2000 02:24:24 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Mark Murray <mark@grondar.za>
Cc:        Jason Evans <jasone@canonware.com>, freebsd-smp@FreeBSD.ORG
Subject:   Re: witness code status? 
Message-ID:  <200010030924.e939OOh05799@mass.osd.bsdi.com>
In-Reply-To: Your message of "Tue, 03 Oct 2000 11:12:11 %2B0200." <200010030912.e939CDL06411@grimreaper.grondar.za> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010030924.e939OOh05799>