- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to analyze "core"?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 07:57 PM
01-07-2004 07:57 PM
how to analyze "core"?
I found the system sometimes produce one or more very large core file(s).
I want to find out the reason.could you help me?
thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 08:04 PM
01-07-2004 08:04 PM
Re: how to analyze "core"?
To get more info out of the corefile you could try some debuggers like adb, gdb, etc. if you have them. Depending on the way the executable was compiled you get more or less info...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 08:08 PM
01-07-2004 08:08 PM
Re: how to analyze "core"?
you can use the command q4 to do an analysis of the core file too.
:-) John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 08:11 PM
01-07-2004 08:11 PM
Re: how to analyze "core"?
to analyze core file on HP-UX systems there are two tools, adb and Q4. They are two debuggers.
For manpage of adb just type man adb, for manpage of Q4 type
# cd /usr/contrib/doc
# uncompress Q4Docs.tar.Z
# tar xvf Q4Docs.tar
I hope this helps you.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 08:12 PM
01-07-2004 08:12 PM
Re: how to analyze "core"?
could you supply me a real solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 08:16 PM
01-07-2004 08:16 PM
Re: how to analyze "core"?
hi, everyone,could you tell me how to avoid produing core files?
thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 08:19 PM
01-07-2004 08:19 PM
Re: how to analyze "core"?
First identify which one is dumping core by the file command.
There is seperate document for q4 analysis also. Not able to connect to the knowledge base.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 08:27 PM
01-07-2004 08:27 PM
Re: how to analyze "core"?
2) kill applications in ways that don't produce core files
3) you could take a look at this link: http://groups.google.nl/groups?q=core+size+hp-ux&hl=nl&lr=&ie=UTF-8&selm=CYRIL.95Mar8193806%40cli53wy.der.edf.fr&rnum=1
Good luck. Elmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 12:04 AM
01-08-2004 12:04 AM
Re: how to analyze "core"?
All the tools mentioned seem like good ideas, but I generally perform the command:
strings core | more
This pulls all the data strings from your core file and displays them. Usually, you can determine the application that caused the problem, and sometimes the process that failed. But it generally gives you a great place to start troubleshooting.
As for stopping the creation of a core file...why? Core files tell you when something is seriously broken. Why hide the fact that something is broken? Fix it. I have a script that runs once each morning (just before I come in) that searches for core files, notifies me, and gives me a headups as to what needs fixed. (just an idea.)
D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 01:40 AM
01-08-2004 01:40 AM
Re: how to analyze "core"?
To analyze core files
file
what
Strings
Also
Down load and install wdb:-
http://hp.com/go/wdb
fire up /opt/langtools/bin/gdb -c
"bt" will give a stack trace:-
(gdb) bt
#0 0xc01ecb88 in ??
#1 0xc01ecb68 in ?? ()
#2 0xc01ecb68 in ?? ()
or use "where"
There are two stored registers that will tell you the address being
accessed
and instruction the process was executing when it failed. In gdb or at
the
"(gdb)" command prompt in wdb, try:
(gdb) p /x $ior
This prints the "Interrupt Offset Register" that is the address the
program was trying to access when it failed.
(gdb) p /x $iir
This is the "Interrupt Instruction Register" that shows the machine instruction that caused the failure. To decode this start up a separate "adb" (adb) should already be installed ??? note it has no prompt and the $ prefixes each command - $q = quit) session and enter the value from the above command and follow it
with "=i". For example,
(gdb) p /x $iir
$2 = 0xfe01280
$ adb
0xfe01280=i
LDW 254,0(r31)
This is a Load word command being executed. See instructions set for PA Risc.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 01:54 AM
01-08-2004 01:54 AM
Re: how to analyze "core"?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 01:59 AM
01-08-2004 01:59 AM
Re: how to analyze "core"?
ulimit -c 0
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 05:51 PM
01-08-2004 05:51 PM
Re: how to analyze "core"?
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 11:45 AM
02-03-2004 11:45 AM
Re: how to analyze "core"?
anyway,thanks for your help:-)