From owner-freebsd-stable@FreeBSD.ORG Wed Dec 8 11:30:51 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6272616A4CE for ; Wed, 8 Dec 2004 11:30:51 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BCBF43D60 for ; Wed, 8 Dec 2004 11:30:51 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id iB8BSPTK099149; Wed, 8 Dec 2004 06:28:25 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)iB8BSOsU099146; Wed, 8 Dec 2004 11:28:25 GMT (envelope-from robert@fledge.watson.org) Date: Wed, 8 Dec 2004 11:28:24 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Michael Nottebrock In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: crashdumps not working X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 11:30:51 -0000 On Wed, 8 Dec 2004, Robert Watson wrote: > On Tue, 7 Dec 2004, Michael Nottebrock wrote: > > > I recently enabled SW_WATCHDOG in my kernel, but when watchdog triggers > > a panic, no crashdump is taken although dumps are enabled. What could be > > causing this? > > If you drop to the debugger by using the debug.kdb.enter sysctl, and do > "call doadump", followed by a reset, does a dump get generated > successfully? I.e., are they completely broken on your system, or is > this somehow a property of the particular hang you're seeing. (Do the > above with caution and in a situation where you don't mind fscking, > needless to say). It this is an SMP box, you might also try setting debug.kdb.stop_cpus to 0. Normally when entering the debugger, the processor entering the debugger will send an IPI to the other CPUs to stop them in order to quiesce the system state a bit. If one or more processors are in a state where processing the top IPI isn't possible, the procesor entering the debugger will wait for them to stop ... potentially for a very long time, and in a tight loop. Changing the setting to 0 might improve the chances of getting into the debugger (etc). Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research