From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 20 22:08:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11F8416A4CE for ; Sat, 20 Dec 2003 22:08:32 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FD1D43D60 for ; Sat, 20 Dec 2003 22:08:31 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id hBL68US4072890; Sun, 21 Dec 2003 00:08:30 -0600 (CST) (envelope-from dan) Date: Sun, 21 Dec 2003 00:08:30 -0600 From: Dan Nelson To: Ryan Sommers Message-ID: <20031221060829.GA74567@dan.emsphone.com> References: <1071986016.1216.2.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1071986016.1216.2.camel@localhost> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: hackers@freebsd.org Subject: Re: Force a dump without panicing? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2003 06:08:32 -0000 In the last episode (Dec 20), Ryan Sommers said: > Is it possible to force a kernel dump without panicing the system? > > I dropped into the debugger and did a "call doadump" however, when I > tried to quit the debugger after this it results in a panic. That should work; I called doadump that way lots of times debugging my crashdump compressor. There's a bug in dumpsys() that only lets you call it once, though. Add a "memset(&kdh, 0, sizeof(kdh))" just above the code that fills in kdh. -- Dan Nelson dnelson@allantgroup.com