From owner-freebsd-current@FreeBSD.ORG Sun Mar 4 20:36:17 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8078D16A402; Sun, 4 Mar 2007 20:36:17 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id 4662613C47E; Sun, 4 Mar 2007 20:36:17 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id 822BF7CFF; Sun, 4 Mar 2007 21:36:16 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id F356B9EF18; Sun, 4 Mar 2007 20:38:02 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id CD6FF405F; Sun, 4 Mar 2007 21:38:02 +0100 (CET) Date: Sun, 4 Mar 2007 21:38:02 +0100 From: Jeremie Le Hen To: Eric Anderson Message-ID: <20070304203802.GS2479@obiwan.tataz.chchile.org> References: <20070302210447.GE2479@obiwan.tataz.chchile.org> <45EB2A62.10704@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45EB2A62.10704@freebsd.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-current@freebsd.org, Jeremie Le Hen Subject: Re: Autodumping on panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2007 20:36:17 -0000 Hi, Eric, On Sun, Mar 04, 2007 at 02:21:54PM -0600, Eric Anderson wrote: > On 03/02/07 15:04, Jeremie Le Hen wrote: > >I've just changed my window manager, and I'm experiencing a few issues > >with it. This may be a panic but I can't be sure for now. Indeed I > >don't have a serial port on my laptop. > > > >I'm sure it is possible to ask the kernel to call doadump() > >automatically on panic, but I can't remember how. Please, could you > >give me the correct way to do it ? > > > Any word on this? I'd love to set this up too. Would be nice to > auto-dump+reset on servers.. Robert Watson replied me privately. Hereafter you will find my reply: On Sat, Mar 03, 2007 at 03:12:53PM +0100, Jeremie Le Hen wrote: > On Sat, Mar 03, 2007 at 12:35:43PM +0000, Robert Watson wrote: > > You may be able to set the "unattended" sysctl or kernel compile option to > > cause it to panic and reboot rather than dropping into DDB. However, I'm > > not in front of a box I can test that on right now, so I'm replying > > privately in case I'm completely wrong :-). > > Thank you for your reply. I've checked the code in kern_shutdown.c and > indeed KDB_UNATTENDED sets the default value of debug.debugger_on_panic > to 0. In case we didn't drop to the debugger, doadump() is called, > this is what I want. Actually turning off the sysctl manually should > also do it. I hope this wille help. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >