Operating System - HP-UX
1752817 Members
4547 Online
108789 Solutions
New Discussion юеВ

Re: how to analysis core file

 

how to analysis core file

hi,

One of my application exit abnormally recently with the attached core file, but i don't know how to debug my programm. Who can help me to translate the core file to the ascii file that i can read? or tell me which tools to can be used to analysis the core and the manaual about the tools
6 REPLIES 6
Muthukumar_5
Honored Contributor

Re: how to analysis core file

You can start as,

# file core
# what core
# gdb
gdb) bt

to get stack trace informations.

hth.
Easy to suggest when don't know about the problem!
Joseph Loo
Honored Contributor

Re: how to analysis core file

hi,

to read and analyse the core file in ascii:

# strings core|more

to assess which error the core pertains to:

# file core


regards.
what you do not see does not mean you should not believe

Re: how to analysis core file

hi,

When i use the gdb to debug the core file, there show some odd symbol such as ??? and others. what is the reason?
and should the environment parameters of LANG be redefined? or others cause ?

Re: how to analysis core file

hi,

Who have the referrence article about how to debug the application or the document about how to use the gdb an q4

B.R.
Joseph Loo
Honored Contributor

Re: how to analysis core file

hi,

refer to this man page on gdb:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gdb-5.3/man.html

refer to this doc on Q4:

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062967345

regards.
what you do not see does not mean you should not believe
vinod_25
Valued Contributor

Re: how to analysis core file

hi chin

the q4 reference manual is inbuilt in Q4ReferenceManual.ps and there is no MAN page for this tool

path and files...

/usr/contrib/doc >ll
total 1952
-r--r--r-- 1 3031 171 56490 Dec 2 1997 Q4BeginnersGuide.ps
-r--r--r-- 1 bin bin 467968 Nov 14 2000 Q4Docs.tar
-r--r--r-- 1 3031 171 37747 Dec 2 1997 Q4KernelDevelopersGuid
e.ps
-r--r--r-- 1 3031 171 215246 Dec 2 1997 Q4ProgrammersReference
.ps
-r--r--r-- 1 3031 171 154211 Dec 2 1997 Q4ReferenceManual.ps
-r--r--r-- 1 bin bin 48125 Sep 5 2001 keymap_ed.doc

Good luck

Vinod