Force a dump without panicing?

Dan Nelson dnelson at allantgroup.com
Sat Dec 20 22:08:32 PST 2003


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 at allantgroup.com


More information about the freebsd-hackers mailing list