panic: mtx_lock_spin: recursed on non-recursive mutex cnputs_mtx @ /usr/src/sys/kern/kern_cons.c:420 when running dump in ddb

Garrett Cooper yanegomi at
Mon Aug 22 01:34:24 UTC 2011

On Thu, Aug 18, 2011 at 5:55 PM, Garrett Cooper <yanegomi at> wrote:
> Hi,
>    Long story short, I was running a UP kernel on a netbook trying to
> stimulate a crash and when I did dump, it would periodically fail
> non-recursive mutex failure with the output shown below (I caught it
> once, but the other times the dump failed).

    This actually shows up when generating a panic via boot -v with
WITNESS, so it's potentially a race condition on my laptop. Adding
MTX_RECURSE to the mutex object didn't help things either.

More information about the freebsd-current mailing list