Core Dump Analysis Using PStack and PMAP | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Core Dump Analysis Using PStack and PMAP

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-06-2007
kimblebee kimblebee is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 6 July 2007, 7:51 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Core Dump Analysis Using PStack and PMAP

Hello,

I'm new to the group and this is my first post. I'm hoping someone can help me out. I have a core dump that I need to analyze from a Unix box and I've never done this sort of thing before. I was told to run a pmap and pstack on the core file which provided two different output files. I've been searching on Google for information on how to read these files to determine the culprit of the crash but I'm not having much luck. I've read many articles about gdb but I don't have root access on the system to add the tool.

Can anyone point me to a good tutorial or provide tips on how to analyze the core dump file with the pmap and pstack files I have?

Thanks so much.

Kimmy
Sponsored Links
    #2  
Old 07-06-2007
ennstate's Avatar
ennstate ennstate is offline
Registered User
 
Join Date: Mar 2007
Last Activity: 10 September 2012, 1:18 PM EDT
Location: Stockholm
Posts: 230
Thanks: 1
Thanked 4 Times in 4 Posts
Hi,
Can you please tell the the OS that you are using?

Thanks
Nagarajan G
Sponsored Links
    #3  
Old 07-06-2007
vino's Avatar
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
 
Join Date: Feb 2005
Last Activity: 9 April 2013, 8:19 AM EDT
Location: Sydney, Down Under
Posts: 2,847
Thanks: 0
Thanked 12 Times in 12 Posts
pmap will give you the process mapping of the application. It will provide details like which shared objects are in use, the memory usage for each of them et al.

pstack will give you the stack trace of a process.

You have a core dump with you. You are better off using gdb. Use it as


Code:
gdb progname the.core.file

See man gdb for more details.
    #4  
Old 07-30-2007
Ankur Ankur is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 24 September 2012, 8:18 AM EDT
Location: Delhi, India
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Use dbx

dbx is another very user friendly and robust utility for core debugging.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
core dump analysis : __kernel_vsyscall () pawankkamboj Red Hat 0 01-01-2012 01:35 AM
analyse core file using pmap and pstack KiranBangalore Solaris 4 06-14-2010 02:57 AM
analyse core file using pmap and pstack KiranBangalore UNIX for Advanced & Expert Users 1 06-11-2010 05:52 AM
How to do core dump analysis in AIX? Mythili AIX 2 07-21-2008 07:03 AM
How to do core dump analysis sip UNIX for Advanced & Expert Users 5 06-20-2005 11:09 AM



All times are GMT -4. The time now is 08:11 AM.