Date: Mon, 23 Jan 2012 18:56:08 +0200 From: Andriy Gapon <avg@FreeBSD.org> To: Gleb Smirnoff <glebius@FreeBSD.org> Cc: current@FreeBSD.org Subject: Re: new panic in cpu_reset() with WITNESS Message-ID: <4F1D9128.3030501@FreeBSD.org> In-Reply-To: <20120123164659.GQ16676@glebius.int.ru> References: <20120117110242.GD12760@glebius.int.ru> <20120120154158.GD16676@FreeBSD.org> <4F1ABFF3.9090305@FreeBSD.org> <20120122163539.GF16676@glebius.int.ru> <4F1D18A5.8010006@FreeBSD.org> <20120123130743.GI16676@glebius.int.ru> <4F1D6830.60602@FreeBSD.org> <20120123162410.GN16676@glebius.int.ru> <20120123162606.GO16676@FreeBSD.org> <4F1D8E2B.30800@FreeBSD.org> <20120123164659.GQ16676@glebius.int.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
on 23/01/2012 18:46 Gleb Smirnoff said the following:
> On Mon, Jan 23, 2012 at 06:43:23PM +0200, Andriy Gapon wrote:
> A> > db> bt
> A> > Tracing pid 1 tid 100001 td 0xfffffe0001d5e000
> A> > kdb_enter() at kdb_enter+0x3b
> A> > panic() at panic+0x1c7
> A> > _mtx_lock_spin_flags() at _mtx_lock_spin_flags+0x10f
> A> > cnputs() at cnputs+0x7a
> A> > vprintf() at vprintf+0xcb
> A> > printf() at printf+0x67
> A> > db_putc() at db_putc+0x81
> A>
> A> Ah, db_putc does something different from what I expected.
> A> Can you hack it to never use printf?
>
> Just cut printfs from db_putc()?
Make the following condition be always false:
if (!kdb_active || ddb_use_printf) {
E.g.:
if (0) {
:-)
--
Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F1D9128.3030501>
