- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: use of core dump
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
04-05-2006 01:09 AM
04-05-2006 01:09 AM
use of core dump
whatever task we can be done core dump file and what are the main functions how can use this for troubleshooting purpose
thanks
siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 01:29 AM
04-05-2006 01:29 AM
Re: use of core dump
cd /directory-with_corefile
file core
This will show the name of the program that failed and the signal that caused the program to terminate. Notice I did not say "the reason for the failure". Signals are generated when a program makes a mistake like going outside of memory bounds, overflowing a stack, referencing an illegal memory address, etc. So the program is signaled and it will either handle the signal or crash with a core dump.
If you did not write the program, there is no further information you can use to fix the bad program with the possible exception of changing maximum program limits for RAM usage.
If you wrote the program and have the source code, there are tools bundled in with your compiler such as tusc which can trace the program's execution and show where in the code the error is detected.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 06:25 PM
04-05-2006 06:25 PM
Re: use of core dump
You need the source code to cleary understand the contents of the core file.
Having said that, you can use file command to determine which application caused the coredump.
I have some experiece with Coredumps, when some of my application coredumps, i have used "strings -a" to read the contents again it won't give all the answers. But worth reading it
#file core
#strings -a core
Regards
Sathish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 06:34 PM
04-05-2006 06:34 PM
Re: use of core dump
Use the method to debug core:
a) file core
b) what core
c) strings -a core
d) gdb binary core
gdb>bt
e) adb binary core
adb> $c
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 06:44 PM
04-05-2006 06:44 PM
Re: use of core dump
You can do strings on the core file to know from which application the core file has been generated , and then you can analyse it or can remove it , to save disk space.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 06:45 PM
04-05-2006 06:45 PM
Re: use of core dump
"core" is one of the best ways of determining a problem with any application runs on Unix.
In the Unix environments, core is a synonim of central memory, or RAM. The word is due to the fact the the original central memory forms were implemented as a network of magnetic iron nucleous: the nucleous memory, or core. For this reason, often, when a process teminates abnormally, the operating system dumps the image of its core memory. This file has the name core dump (obviously) and can be later on analysed by using diagnostic tools.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 06:53 PM
04-05-2006 06:53 PM
Re: use of core dump
Basically core is dumped because the application crashed. It helps you to debug and analyse the problem.
Use have to familiar with debuggers like gcc, adb to analyse the core.
You can get to know that which application is made this core? What is the problem state (stack trace) and debug informations to fix the problem.
To debug and analyse thecore:
gdb binary core
gdb>bt
HTH,
Prabu.S