Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2013 11:16:49 +0200
From:      =?ISO-8859-1?Q?=D6zkan_KIRIK?= <ozkan.kirik@gmail.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: FreeBSD 10 r259108 - kernel debug panic
Message-ID:  <CAAcX-AEpdp=G6Ezp=JtFUAXY9=Q_Xjg_3gxD06epD%2BfBeeC8wg@mail.gmail.com>
In-Reply-To: <20131209042841.GR59496@kib.kiev.ua>
References:  <CAAcX-AF0pz_omK1C8VsqNbBoByqJ%2BbdnqEOq3qRh7PRURxhZqg@mail.gmail.com> <20131209042841.GR59496@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you,

It works :)


On Mon, Dec 9, 2013 at 6:28 AM, Konstantin Belousov <kostikbel@gmail.com>wrote:

> 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.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAcX-AEpdp=G6Ezp=JtFUAXY9=Q_Xjg_3gxD06epD%2BfBeeC8wg>