Operating System - HP-UX
1752661 Members
5460 Online
108788 Solutions
New Discussion юеВ

Re: finding process list from crashdump

 
madhuchakkaravarthy
Trusted Contributor

finding process list from crashdump

hi

how to find the process list from the crashdump output.

last one month before server hanged due to nproc table got full, we analysed the case with HP support. In HP report the process id of the process is 1247 but when we try to analyze the crashdump output we are not able to find the particular process.

any commands to find the particular process.

regards

MC
6 REPLIES 6
Hakki Aydin Ucar
Honored Contributor

Re: finding process list from crashdump

I ve never faced your situation before ,maybe it's gone somehow ?
,but did you check this pages to assist you ?
http://www.unixguide.net/hp/hpuxcrashdump.shtml
Emil Velez
Honored Contributor

Re: finding process list from crashdump

depends on your OS version

kwdb -p .
run Analyze UA > ana.out

in the ana.out text file you should see the state of all of the processors and will have a list of all of the processes. Remember the process ID is a hex value.

kwdb -p .
load struct proc from proc_list next p_factp max nproc
keep p_pid ==
print -tx



Terry.giblin
Frequent Advisor

Re: finding process list from crashdump

In 1997 with HP Support, I analysed my very first HP-UX crashdump, one of our systems kept crashing after a panic!

Now that this information is in the public domain, I would stress one word of caution.

If you don't know what you are doing exactly or if there are multiple SA's in your organisation.

I would strongly recommend, you appoint a primary SA, to analyse crash dumps.

Remember you only get one crash dump.

Merry Christmas and a Happy New Year.

Terry Giblin
Ismail Azad
Esteemed Contributor

Re: finding process list from crashdump

Hi,

Accessing the process list requires intense understanding of kernel data structures. q4 was traditionally used for this and right now on 11.31 kwdb is the preferred utility. The kernel has it's own view of the operating system and hence it's important to understand at times what the kernel is thinking. Structure fields and data structures can be analyzed with the HP recommended debugger on 11.31 kwdb and requires knowledge of C language. How it is done!.. It's typically the way the king said it. Loading the linked list is done with load and viewing the data is done with print.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Terry.giblin
Frequent Advisor

Re: finding process list from crashdump

"Requires knowledge of C language."

Kiernighan & Ritchie, have a lot to answer for, if you ask me. - But I still have my first edition (addition) copy, from 1988.

http://upload.wikimedia.org/wikipedia/en/4/48/K%26R_C.jpg

Or as I called it, System X.

"HP recommended debugger on 11.31 kwdb."

This I was not aware of, thank you very much.

Merry Christmas and a Happy New Year.

Terry Giblin
Dennis Handly
Acclaimed Contributor

Re: finding process list from crashdump

>Terry: This I was not aware of

kwdb is pretty much the only kernel debugger on 11.31.

For user space, there is wdb/gdb.