Subject: Re: Autosave of panic backtraces (was Re: Getting into the debugger)
To: Brian C. Grayson <>
From: Giles Lean <>
List: tech-kern
Date: 01/17/1999 18:17:45
On Sun, 17 Jan 1999 01:00:19 -0600  "Brian C. Grayson" wrote:

>   Recently I was wondering, how hard would it be to add code to
> panic() to print out a backtrace, and save it somewhere on disk
> before dying?  It's probably a bit over my head at this point
> as far as implementing it, but I have a few ideas....

Well, there's the old fashioned approach of saving all of memory
into swap space, and reading it back on boot via savecore(8).

Is there much point just saving the backtrace?  In my limited
experience this isn't sufficient to do much with except to identify
a known problem.

Anyway, if you decide to save just the backtrace, I recommend
the swap area. :-)