On Sun, Dec 08, 2013 at 11:08:25PM +0200, ?zkan KIRIK
wrote:> Hi,
>
> I am using FreeBSD r259108 amd64.
>
> I'm trying to debug a deadlock about ufs.
> I compiled GENERIC kernel with the options below:
>
> makeoptions DEBUG=-g
> options INVARIANTS
> options INVARIANT_SUPPORT
> options WITNESS
> options DEBUG_LOCKS
> options DEBUG_VFS_LOCKS
> options DIAGNOSTIC
> options DDB
>
> while booting, kernel panics:
>
> ...
> ...
> em0: link state changed to UP
> random: unblocking device.
> panic: mtx_lock_spin: recursed on non-recursive mutex cnputs_mtx @
> /usr/src/sys/kern/kern_cons.c:500
>
> cpuid = 0
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+Ox2b/frame
> Oxfffffe0098314160
> kdb_backtrace() at kdb_backtrace+0x39/frame Oxfffffe0098314210
> vpanic() at vpanic+0x126/frame Oxfffffe0098314250
> kassert_panic() at kassert_panic+0x136/frame Oxfffffe00983142c0
> __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x166/frame
> 0x11ff1e0098314300
> cnputs() at cnputs+0x32/frame Oxfffffe0098314320
> putchar() at putchar+Oxl3a/frame Oxfffffe00983143a0
> kvprintf() at kvprintf+Oxda/frame Oxfffffe00983144a0
> vprintf() at vprintf+0x87/frame 0x1111fe0098314570
> printf() at printf+0x43/frame Oxfffffe00983145d0
> witness_checkorder() at witness_checkorder+Oxa99/frame Oxfffffe0098314660
> __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x95/frame
> Oxfffffe00983146a0
> sc_puts() at sc_puts+OxbO/frame Oxfffffe00983146e0
> sc_cnputc() at sc_cnputc+Oxe5/frame Oxfffffe0098314710
> cnputc() at cnputc+0x7f/frame Oxfffffe0098314740
> cnputs() at cnputs+0x58/frame Oxfffffe0098314760
> putchar() at putchar+Oxl3a/frame Oxfffffe00983147e0
> kvprintf() at kvprintf+Oxda/frame Oxfffffe00983148e0
>
> vprintf() at vprintf+0x87/frame Oxfffffe00983149b0
> printf() at printf+0x43/frame Oxfffffe0098314a10
> witness_checkorder() at witness_checkorder+Oxa99/frame Oxfffffe0098314aa0
> __mtx_lock_spin_flags() at __mtx_lock spin flags+0x95/frame
> Oxfffffe0098314ae0
> msleep_spin_sbt() at msleep_spin_sbt+gx90/frame Oxfffffe0098314b70
> random_kthread() at random_kthread+Ox1d0/frame Oxfffffe0098314bb0
> fork_exit() at fork exit+Ox84/frame Oxfffffe0098314bf0
> fork_trampoline() at fork_trampoline+Oxe/frame Oxfffffe0098314bf0
> --- fork_ 0, rip = 0, rsp = Oxfffffe0098314cb0, rbp = 0 ---
> KDB: enter: panic
> [ thread pid 14 tid 100013 ]
> Stopped at kdb_enter+Ox3e: mug SO,kdb_why
> db>
>
>
> What could be the problem?
Add WITNESS_SKIPSIN option to your config.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL:
<http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20131209/193eeebb/attachment.sig>