Diff for /wikisrc/Attic/panic.mdwn between versions 1.2 and 1.5

version 1.2, 2010/12/02 21:44:08 version 1.5, 2012/03/03 15:24:16
Line 48  When at the DB prompt, simply execute: Line 48  When at the DB prompt, simply execute:
   
 The dump of memory will be written to the swap partition.  The dump of memory will be written to the swap partition.
   
 At boot time, if rc.conf(5) has value "savecore=yes",  At boot time the swap file coredump will be saved to "/var/crash".
 the swap file coredump will be saved to "/var/crash".  The following settings control this behaviour
   (they are set by default in /etc/defaults/rc.conf),
   you don't usually need to change those:
   
         savecore=yes          savecore=yes
         savecore_flags="-N /netbsd -z"          savecore_flags="-N /netbsd -z"
Line 96  If you wish to continue to debug, you ma Line 98  If you wish to continue to debug, you ma
   
 ## Processing the CORE Dump  ## Processing the CORE Dump
   
 Heubert Feyrer has a great guide to analyzing kernel panic core dumps at <http://www.feyrer.de/NetBSD/bx/blosxom.cgi/index.front?-tags=gdb>  Hubert Feyrer has a great guide to analyzing kernel panic core dumps at <http://www.feyrer.de/NetBSD/bx/blosxom.cgi/index.front?-tags=gdb>
   
 Additionally, the following command below can be used to create a relatively useful backtrace:  Additionally, the following command below can be used to create a relatively useful backtrace:
   
 <pre>  <pre>
 bash-4.0# cd /var/crash  localhost# cd /var/crash
 bash-4.0# gunzip -d *gz  localhost# gunzip -d *gz
 bash-4.0# gdb  --symbols=/netbsd.gdb --quiet --eval-command="file /netbsd.gdb" \   localhost# gdb  --symbols=/netbsd.gdb --quiet --eval-command="file /netbsd.gdb" \ 
                --eval-command="target kvm netbsd.1.core" --eval-command "bt" \                   --eval-command="target kvm netbsd.1.core" --eval-command "bt" \ 
                --eval-command "list" --eval-command "info all-registers" 2>&1                  --eval-command "list" --eval-command "info all-registers" 2>&1
 Load new symbol table from "/netbsd.gdb"? (y or n) y  Load new symbol table from "/netbsd.gdb"? (y or n) y
 Reading symbols from /netbsd.gdb...done.  Reading symbols from /netbsd.gdb...done.
 #0  0xc047c9f8 in cpu_reboot (howto=256, bootstr=0x0) at /usr/src/sys/arch/i386/i386/machdep.c:927  #0  0xc047c9f8 in cpu_reboot (howto=256, bootstr=0x0) at /usr/src/sys/arch/i386/i386/machdep.c:927

Removed from v.1.2  
changed lines
  Added in v.1.5


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb