Additions:
Moved to the Doc Wiki
http://doc.pfsense.org/index.php/Obtaining_Panic_Information_for_Developers
http://doc.pfsense.org/index.php/Obtaining_Panic_Information_for_Developers
Deletions:
If you need to provide crash data to the pfSense developers, please follow this document.
First, you need to install the developer kernel. To do so, first run "rm /boot/kernel/pfsense_kernel.txt" from a command prompt. Then upgrade your pfSense release to the same release it is currently running, but when upgrading, you will have a kernel selection box. Select the Developer kernel option.
//You most likely want to enable a serial port unless you wish to hand scribe about 10+ pages of text...//
__**Crash it!**__
Type each of these commands at the db> prompt:
%%
bt
bt all
show allpcpu
show alllocks
show lock
ps
set $lines 0
allt
show lockedvnods
reset
%%
If you wish to build your own developers kernel with debugging:
You need the following in your kernel file (or use [[http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/builder_scripts/conf/pfSense.6.DEBUG?rev=1.3 this]] kernel configuration file):
%%
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
options KDB # Enable kernel debugger support.
options DDB # Support DDB.
options GDB # Support remote GDB.
options INVARIANTS # Enable calls of extra sanity checking
options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS
%%
Additions:
First, you need to install the developer kernel. To do so, first run "rm /boot/kernel/pfsense_kernel.txt" from a command prompt. Then upgrade your pfSense release to the same release it is currently running, but when upgrading, you will have a kernel selection box. Select the Developer kernel option.
Deletions:
Additions:
First, you need to install the developer kernel. To do so, upgrade your pfSense release to the same release it is currently running, but when upgrading, select the Developer kernel option.
Deletions:
# Full installation
fetch -o /root/kernel.debug http://www.pfsense.com/~sullrich/debugging_kernels/1.0-RC1/kernel
# Embedded installation
/etc/rc.conf_mount_rw
fetch -o /root/kernel.debug http://www.pfsense.com/~sullrich/debugging_kernels/1.0-RC1/kernel.embedded
/etc/rc.conf_mount_ro
Backup the old kernel:
/etc/rc.conf_mount_rw
mv /boot/kernel/kernel /root/kernel.orig
mv /boot/kernel/kernel.gz /root/kernel.orig
/etc/rc.conf_mount_ro
Install the new kernel:
/etc/rc.conf_mount_rw
mv /root/kernel.debug /boot/kernel/kernel
/etc/rc.conf_mount_ro
# reboot system
shutdown -r now