Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2002 18:38:43 -0700 (PDT)
From:      User Tomdean <tomdean@speakeasy.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   How do I Create a Crash Dump?
Message-ID:  <200204130138.g3D1chF01203@celebris.tddhome>

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

...
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
...

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




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