Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2013 23:08:25 +0200
From:      =?ISO-8859-1?Q?=D6zkan_KIRIK?= <ozkan.kirik@gmail.com>
To:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   FreeBSD 10 r259108 - kernel debug panic
Message-ID:  <CAAcX-AF0pz_omK1C8VsqNbBoByqJ%2BbdnqEOq3qRh7PRURxhZqg@mail.gmail.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAcX-AF0pz_omK1C8VsqNbBoByqJ%2BbdnqEOq3qRh7PRURxhZqg>