INFODOC ID: 13522 SYNOPSIS: Setting kmem flag in Solaris 2.5 DETAIL DESCRIPTION: The kmem flag is set if kernel heap corruption is suspected (corruption such as modifying freed memory, freeing a buffer twice, freeing an uninitialized pointer, or writing beyond the end of a buffer). Setting the kmem flags requires ROOT privilege. If possible, a tip line should be set up when the kernel data is collected; the recording of the data can become tedious since there is no way to capture the data output from the kadb commands and the output must be recorded by hand if a tip line is not attached. Bring the system down to the OK prompt. The following commands will enable kernel memory flags: 1) at OK prompt type OK> boot kadb -d (system will boot kadb) wait until you see the kadb prompt. 2) at the kadb prompt hit return kadb> (this loads the kernel) 3) at the kadb(0) prompt type kadb(0)> startup:b (this sets a break point) 4) at the kadb(0) prompt type kadb(0)> :c (to continue) 5) at kadb(0) prompt type kadb(0)> kmem_flags/W 1f (this enable tracing of kernel memory areas) 6) at kadb(0) prompt type kadb(0)> :c (system will continue booting to completion) Use the system normally until a hang or a panic situation occurs. If the system hangs, use the l1-a sequence to force it to drop to the open boot PROM. In this instance it will drop into kadb. If the system panics, it will automatically drop into kadb. 1) Collect the pertinent information to analyze the hang or panic: e.g. $c - to view kernel panic stack *panicstr/s - check panic string $ $q This will exit kadb and place you at the PROM OK prompt 3) at PROM OK prompt type "sync" This will force a core dump. SOLUTION SUMMARY: