Sun Solutions by Forsythe
Jarod Jenson
Chief Technology Architect
Paul Zajdel
Sun Solutions Practice Director
Fred King
Practice Manager
Corey Brune
Master Consultant
John J McLaughlin
Sun Product Specialist
David Rubio
Senior Consultant
Chad Mynhier
Master Consultant

Panic

Using DTrace to root cause system crashes

Mon, 08/11/2008 - 17:41 by David Rubio

DTrace can be used to find the root cause of a BAD TRAP Solaris 10 system crash. Most BAD TRAP panics are caused by one kernel module clobbering kernel memory containing a pointer. When this now bad pointer gets used later, the result is a BAD TRAP kernel panic. One possible way to find the root cause of this type of system crash is to turn on kernel memory auditing through the kmem_flags kernel tunable. Common memory access bugs that can be detected with these flags are:

Writing past the end of an allocated buffer

Using uninitialized memory