Setting up a running FreeBSD/PCBSD system to enter kgdb on panic

Patrick Mahan mahan at mahan.org
Tue Apr 5 18:58:50 UTC 2011



On 4/5/11 10:38 AM, fbsdmail at dnswatch.com wrote:
> 
> On Mon, April 4, 2011 5:07 pm, Eitan Adler wrote:
>> On Mon, Apr 4, 2011 at 7:35 PM, David Somayajulu
>> <david.somayajulu at qlogic.com> wrote:
>>
>>> Hi All,
>>> Is there some way I can setup a running FreeBSD - (I use PCBSD7.2) - to
>>> break into kgdb when the system panics. I am trying to get a stack
>>> trace when "Fatal trap 12: page fault while in kernel mode" happens.
>>
>> debug.debugger_on_panic=1
> 
> Does this line go in C:\Windows\system32\win.ini?
> 

No, it's a sysctl line.  Issue as either root or via 'sudo' -

% sudo sysctl debug.debugger_on_panic=1

Assuming your kernel has been built with DDB/KDB enabled.

Patrick


More information about the freebsd-net mailing list