From owner-freebsd-questions Sat Apr 13 8:15:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 5763637B416 for ; Sat, 13 Apr 2002 08:15:30 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.11.6/8.11.6) with ESMTP id g3DFBg074534; Sat, 13 Apr 2002 12:11:43 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Sat, 13 Apr 2002 12:11:42 -0300 (ART) From: Fernando Gleiser To: User Tomdean Cc: Subject: Re: How do I Create a Crash Dump? In-Reply-To: <200204130138.g3D1chF01203@celebris.tddhome> Message-ID: <20020413120630.J5464-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 12 Apr 2002, User Tomdean wrote: > I have been chasing a problem and have been unable to get a crash > dump. I want to create a dump using ddb and panic. > > So, I break into ddb and enter panic. Then 'call boot(0)' and the > system reboots. The disks were not dismounted. Ok. When the system > reboots, I see: You need to panic twice. The first panic breaks to DDB and the second panics the kernel. > > ... > dumpon: crash dumps to /dev/ad0s2b (116, 196609) > Checking for core dump: dumplo = 570507264 (1114272 * 512) > savecore: magic number mismatch (544c4645 != 8fca0101) > savecore: no core dump See above. The machine rebooted because you told it to do so. If you say panic a second time the kernel will do the crash dump to the dumpdev. Fer > ... > > How do I get past this point? > > I have > makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols > options DDB #debugger > options BREAK_TO_DEBUGGER #a BREAK on a comconsole goes to > #DDB, if available. > options ALT_BREAK_TO_DEBUGGER > in the kernel config. > > I have > dumpdev="/dev/ad0s2b" # Device name to crashdump to (or NO). > dumpdir="/var/crash" # Directory where crash dumps are to be stored > savecore_flags="-v" # Used if dumpdev is enabled above, and present. > in /etc/rc.conf > > tomdean > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message