From owner-freebsd-hackers Tue Mar 19 13:43:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id B5ECD37B404 for ; Tue, 19 Mar 2002 13:43:33 -0800 (PST) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id g2JLhUv44418; Tue, 19 Mar 2002 14:43:30 -0700 (MST) (envelope-from ken) Date: Tue, 19 Mar 2002 14:43:30 -0700 From: "Kenneth D. Merry" To: Josef Karthauser Cc: hackers@FreeBSD.ORG Subject: Re: Kernel debugger and X11. Message-ID: <20020319144329.A44361@panzer.kdm.org> References: <20020319201528.GI4989@genius.tao.org.uk> <20020319143448.A44276@panzer.kdm.org> <20020319213623.GA7786@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020319213623.GA7786@genius.tao.org.uk>; from joe@tao.org.uk on Tue, Mar 19, 2002 at 09:36:23PM +0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Mar 19, 2002 at 21:36:23 +0000, Josef Karthauser wrote: > On Tue, Mar 19, 2002 at 02:34:48PM -0700, Kenneth D. Merry wrote: > > > > > Does anyone have any working practices around this problem? I'm sure > > > that I'm not the only one of us with it. > > > > I would recommend just enabling crash dumps; then it doesn't matter if > > you're in X when the machine panics, and you can get a stack trace and look > > at things once the machine reboots. > > > > I suppose. Is it possible to switch the debugger off via a sysctl, > without compiling it out? From sys/kern/kern_shutdown.c: #ifdef DDB #ifdef DDB_UNATTENDED int debugger_on_panic = 0; #else int debugger_on_panic = 1; #endif SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, CTLFLAG_RW, &debugger_on_panic, 0, "Run debugger on kernel panic"); #endif So you should be able to turn it off with debug.debugger_on_panic. From a grep through the tree, it looks like only i386 and powerpc look at that variable. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message