From owner-freebsd-current@FreeBSD.ORG Tue Mar 6 17:04:13 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 8D15816A401; Tue, 6 Mar 2007 17:04:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 1742813C491; Tue, 6 Mar 2007 17:04:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l26H428U012256; Tue, 6 Mar 2007 12:04:02 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Tue, 6 Mar 2007 11:59:04 -0500 User-Agent: KMail/1.9.1 References: <20070302210447.GE2479@obiwan.tataz.chchile.org> <45EB2A62.10704@freebsd.org> <20070304203802.GS2479@obiwan.tataz.chchile.org> In-Reply-To: <20070304203802.GS2479@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703061159.05435.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 06 Mar 2007 12:04:04 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2747/Tue Mar 6 10:49:25 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: 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: Tue, 06 Mar 2007 17:04:13 -0000 On Sunday 04 March 2007 15:38, Jeremie Le Hen wrote: > 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. Yes, KDB_UNATTENDED will work, but there is a bug in that the system should not enter DDB when you are in X, it should just drop a dump and then reboot. This used to work but is broken in 5.x and later I believe. IWBN to get this fixed again. -- John Baldwin