locks under printf(9) and WITNESS = panic?

Attilio Rao attilio at freebsd.org
Thu Jul 11 21:43:49 UTC 2013


On Thu, Jul 11, 2013 at 1:21 PM, John Baldwin <jhb at freebsd.org> wrote:
> On Saturday, June 29, 2013 9:19:24 pm Steven Hartland wrote:
>> when booting stable/9 under a debug kernel with WITNESS
>> enabled and verbose I get the following panic..
>>
>> It seems very much like the discussion from a year back on
>> current: http://lists.freebsd.org/pipermail/freebsd-current/2012-
> January/031375.html
>>
>> Any ideas?
>
> Yeah, that lock needs to be MTX_RECURSE (the cnputs_mtx).  However, it
> only recurses under witness.  *sigh*

I have a patch to make mtx_lock_flags() to accept MTX_RECURSE. I will
commit it as long as all the consumers code will be reviewed which
should be any day.

Attilio


--
Peace can only be achieved by understanding - A. Einstein


More information about the freebsd-stable mailing list