identifying core dump files.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers identifying core dump files.
# 1  
Old 05-07-2010
identifying core dump files.

I have come into a business environtment problem and had been 10+ years since the last time I did any unix admin work.

A long time ago some mainframe person created an app that talked to a mainframe on UNIX and wrote a c program with "core" in the file name to indicate that the file was the CORE processing unit. Of course over the last 2 decades this convention has multiplied and multiplied.

Visually when I look at file names both are core.SOMETHING.


I am trying to figure out how to programatically differeniate core dumps from running c programs called core.SomeSequenceOfNumbers whose removal will bring down business for some duration.
# 2  
Old 05-07-2010
Use the "file" command to differentiate the two different file types.

Code:
# which file
/usr/bin/file
# file /var/core/core
/var/core/core:     ELF 64-bit MSB core file SPARCV9 Version 1, from 'crs_stat.bin'
# file /usr/bin/ls
/usr/bin/ls:    ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped

The first line above shows where the "file" command is. The second, what an actual core file looks like. The third line is an example of what your compiled C program would look like.


HTH
# 3  
Old 05-11-2010
The "file" test suggested above is very important when dealing with program core dump files, directories called "core*", or files called "core*".
Some systems dump core with a filename core.<pid> where <pid> is the process ID.

Beware that the file containing the text for "man core" is usually called "core.4". Well worth seraching your system to see what variety of filenames you have.

I have seen systems destroyed by deleting the unix "core" package when blindly trying to delete program core dumps.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Identifying Underlying Physical Core Count - AIX

Hi guys, I was wondering if you could help me out with a query I had. Is there a query to identify the total processor core count of the physical AIX box from which I am running 4 LPARs. I have run the lscfg, lparstat-i and lsdev -Cc processor commands however they just show me the cores... (9 Replies)
Discussion started by: OsmosisJones
9 Replies

2. UNIX for Dummies Questions & Answers

No core dump

my progrme complaints 'Segmentation fault'. How to let it print 'Segmentation fault(core dumped)' and generate core dump file? $ulimit unlimited (22 Replies)
Discussion started by: vistastar
22 Replies

3. Red Hat

Process does not dump any core files when crashed even if coredumpsize is unlimited

Hello Im using redhat and try to debug my application , its crashes and in strace I also see it has problems , but I can't see any core dump I configured all the limit ( im using .cshrc ) and it looks like this : cputime unlimited filesize unlimited datasize unlimited... (8 Replies)
Discussion started by: umen
8 Replies

4. UNIX for Advanced & Expert Users

core dump

Hi All, i am new to this forum.i want detail of reading the core file and trace the problem because of what the program get crashed.please help me.if any body knows any website or tutoril plese let me know. sudhir (6 Replies)
Discussion started by: sudhir patnaik
6 Replies

5. Programming

about core dump

MY friends: my program under sco unix have a problem? it create a core dump file on the path when execute program , but i can't find the error of the C program ,i don't know how to see the error about my program use core, please help me or give me some suggest and what tools can use... (1 Reply)
Discussion started by: zhaohaizhou
1 Replies

6. UNIX for Dummies Questions & Answers

core dump

I've got a core dump in my weblogic home directory, which i have tried to debug by initiating savecore from /etc/init.d/savecore start but savecore failed to create the two files, that is vmcore.n and vmunix.n. savecore is enable on my server to save vmcore and vmunix in /var/crash/hostname 1)... (4 Replies)
Discussion started by: hassan2
4 Replies

7. UNIX for Dummies Questions & Answers

core dump

Hi , Working on AIX 4.3. An internal error from my apps engine suddenly causes the engine to die. During this time i do notice a core file being dumped in the directory from where I try to re-start my engine. Q is how does one read this core file, or I should say 'what is this core file'? thnx (2 Replies)
Discussion started by: buRst
2 Replies

8. UNIX for Dummies Questions & Answers

core dump

does any one have read a core dump? is there any reader for that? or may i know what is the use of that core which takes sometimes memory in GBs? :) (6 Replies)
Discussion started by: sskb
6 Replies

9. 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
Login or Register to Ask a Question