Date: Mon, 4 Aug 2008 20:23:35 +0200 From: Ulrich Spoerlein <uspoerlein@gmail.com> To: Robert Watson <rwatson@FreeBSD.org> Cc: stable@FreeBSD.org Subject: Re: ddb(4) scripts not working in RELENG_7? Message-ID: <20080804182334.GA1480@roadrunner.spoerlein.net> In-Reply-To: <alpine.BSF.1.10.0808031444280.85159@fledge.watson.org> References: <20080803075744.GA1555@roadrunner.spoerlein.net> <alpine.BSF.1.10.0808031444280.85159@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Robert, On Sun, 03.08.2008 at 14:49:00 +0100, Robert Watson wrote: > On Sun, 3 Aug 2008, Ulrich Spoerlein wrote: > > I was testing a patch and getting a panic (page fault while in kernel mode) > > in RELENG_7 running multiuser mode, but no scripts were automagically run, > > although I configured ddb_enable=YES in rc.conf. > > > > It simply dropped me to the interactive ddb(4) prompt, nothing more. Do you > > have any idea what I could be missing? > > I have been using DDB scripts on 7-STABLE without any problems, but I'm not > sure I've tried it with a page fault, just regular panics. Could you try > entering the debugger via "sysctl debug.kdb.panic=1", which forces a panic, > and see if your scripts run then? Perhaps there's some inconsistency in how > we're entering the debugger. If things still appear not to be happening, try > setting up a kdb.enter.default script and see if that works? Spot on! Entering via sysctl works as expected; the 'default' script will also be executed after a page fault, but not the panic-script. So either page faults should call the panic-script or some sort of kdb.enter.pfault should be introduced? Either way, I see another manpage update coming up :) Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080804182334.GA1480>