Sponsored Content
Full Discussion: How to do core dump analysis
Top Forums UNIX for Advanced & Expert Users How to do core dump analysis Post 73567 by jim mcnamara on Thursday 2nd of June 2005 04:05:01 PM
Old 06-02-2005
You're asking a lot.

Basically, you use a debugger. Since you did not specify an OS I'll assume you have
gdb. You must have compiled the file
Code:
gcc -g -o myfile myfile.c

in order for symbols to be available. If you are analyzing a core dump of somebody else's code you are in trouble.

The core dump file is called core
Code:
gdb myfile core

This will show you a backtrace (stack dump) of the call tree that lead to the crash.
You will have to find using the stack dump where in the code (not in a C library) the crash occurred. In other words the last line of the program's code that actually led to the crash.

try man gdb
and
this tutorial site for gdb:

http://www.unknownroad.com/rtfm/gdbtut/gdbuse.html
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help, what is the difference between core dump and panic dump?

help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies

2. UNIX for Dummies Questions & Answers

core file analysis

Hi folks, I'm hoping someone would be charitable enough to give me a quick explanation of adb usage for analyzing core files...or point me in the right direction. A search here revealed scant results and web searches are providing me with ambiguous information. Running Solaris. Thanks,... (1 Reply)
Discussion started by: kristy
1 Replies

3. UNIX for Advanced & Expert Users

any tool for core analysis on HP-UX?

Hi, I just wanted to know is there any tool avaliable for core analysis on hp-ux. I have heard about q4 utility. But I think it is used for analysis of system crash dump and not for core dump produced by a user process. gdb doesn't give much information unless the binary is debug-build. ... (0 Replies)
Discussion started by: shriashishpatil
0 Replies

4. UNIX for Advanced & Expert Users

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. ... (3 Replies)
Discussion started by: kimblebee
3 Replies

5. AIX

How to do core dump analysis in AIX?

Please tell me some methods to analyse core dump in AIX.:) (2 Replies)
Discussion started by: Mythili
2 Replies

6. Solaris

Core file analysis

How can we analyze a core file and determine why it was generated on a solaris system? I know file core filename will tell us what program generated the file. But, what to do next to get more details? Thanks, (5 Replies)
Discussion started by: Pouchie1
5 Replies

7. Red Hat

core dump analysis : __kernel_vsyscall ()

We have just enabled core dump on our RHEL5.7 OS. the java process is terminating very often so we enable core dump to analysis the issue and find below in core dump file. Core was generated by `/usr/java/jdk1.6.0_06//bin/java -server -Xms1536m -Xmx1536m -Xmn576m -XX:+Aggre'. Program... (0 Replies)
Discussion started by: pawankkamboj
0 Replies

8. UNIX for Dummies Questions & Answers

Learn Linux Core Dump Analysis

Can any body provide me some good link to learn to create and analyze linux user mode application / kernel module core dumps? (1 Reply)
Discussion started by: rupeshkp728
1 Replies

9. AIX

AIX system dump analysis

dear all, i have p770 aix6.1 last week, the host reboot suddenly with dump. but i don't know how to analyze the dump. I posted kdb details in the attachment. please anybody help me. #>kdb vmcore.0 /unix vmcore.0 mapped from @ 700000000000000 to @ 7000001c72c0908 START ... (13 Replies)
Discussion started by: tomato00
13 Replies
kgmon(8)							    Unsupported 							  kgmon(8)

Name
       kgmon - generate a dump of the operating system's profile buffers

Syntax
       /etc/kgmon [ options ] [ system ] [ memory ]

Description
       The command is used when profiling the operating system.  When no arguments are supplied, indicates the state of operating system profiling
       as running, off, or not configured.  For further information, see If the option is specified, extracts profile data from the operating sys-
       tem and produces a file suitable for later analysis by

       The  file  is first converted to a format suitable for by using the filter. The command dumps the kernel profiling data for all the proces-
       sors in the system. The command is used to create a file suitable for analysis by for any or all the processors in the system.

Options
       -b   Resumes the collection of profile data.

       -h   Stops the collection of profile data.

       -p   Dumps the contents of the profile buffers into a file.

       -r   Resets all the profile buffers.  If the option is also specified, the file is generated before the buffers are reset.

       If neither nor is specified, the state of profiling collection remains unchanged.  For example, if the option is specified and profile data
       is  being  collected,  profiling  will be momentarily suspended, the operating system profile buffers will be dumped, and profiling will be
       immediately resumed.

Diagnostics
       Users with only read permission on cannot change the state of profiling collection.  They can get a file with the warning that the data may
       be inconsistent if profiling is in progress.

Files
       Default system

       Default memory

See Also
       gprof(1), config(8), kgconv(8)

																	  kgmon(8)
All times are GMT -4. The time now is 10:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy