Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Apr 2002 12:11:42 -0300 (ART)
From:      Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
To:        User Tomdean <tomdean@speakeasy.org>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How do I Create a Crash Dump?
Message-ID:  <20020413120630.J5464-100000@cactus.fi.uba.ar>
In-Reply-To: <200204130138.g3D1chF01203@celebris.tddhome>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020413120630.J5464-100000>