02-16-2003
core file --- a file written by the kernel when it is terminating a process as a result of the default action of certain singals. Which signals varies from system to system. A typical list might be SIGABRT, SIGFPE, SIGILL, SIGQUIT, SIGSEGV, and SIGBUS.
With most versions of UNIX, yes they start out with a name of core. But some versions of UNIX give you control over the name. Recent SunOS versions have a coreadm command that can do this.
And you can always do something like "mv core perl.core".
I certainly would not assume that a file with "core" somewhere in the name must be a core file. To be sure, you need to inspect the contents somehow. In previous posts people have described tools like: "file", and "adb". Did you find any that work on your system? Try it against these candidates.
But bear in mind that if someone did do "mv core perl.core", it may that they want that file.
10 More Discussions You Might Find Interesting
1. AIX
hi
We have a program which is running on cutomer end,and when its crashing its not dropping core, we asked them to check ulimit,they say that its unlimited.
Even when they crash the program manually by using command
kill -ABRT <pid>
its not dropping the core,on our end when we use same... (1 Reply)
Discussion started by: khan_069
1 Replies
2. AIX
Hello,
In a script shell, I have a variable containing the name of a file and I would like to distinguish the name from the extention of the file. For example, the file 'myfile.txt' is in a variable called $VAR. How can I obtain 2 variables, one with 'myfile' and the other with 'txt' ?
Thank you (2 Replies)
Discussion started by: tbeghain
2 Replies
3. Solaris
anybody know abt Segmentation Fault - core dumped in solaris 5.10..wats this error?? (4 Replies)
Discussion started by: sanjana
4 Replies
4. HP-UX
how to distinguish different files and choose a mode while ftp?means which modes ascii or binary for zip(.gz) ,.txt,.sh,.dat and executable as well as movie files. (1 Reply)
Discussion started by: megh
1 Replies
5. Programming
I am working on solaris 9. and use gmake to compile and linke c/c++ program.
anybody can tell me the distinguish between gmake and make? :confused: (10 Replies)
Discussion started by: robin.zhu
10 Replies
6. Shell Programming and Scripting
I want to grep "abc" from "logyy". I want not only the instance of "abc" to return, but the line just above it as well (no matter what it is).
:)
Can some one please assit me to drive on this (2 Replies)
Discussion started by: NIMISH AGARWAL
2 Replies
7. Solaris
I have sunfire question and getting the following error message through prtdiag.
MB/P0/F0 RS failed 0 rpm
What it means? Please help me ASAP. (2 Replies)
Discussion started by: mokkan
2 Replies
8. Shell Programming and Scripting
I need to get the lines in a log file matching a particular string, and print out the output to the screen from the point of the match, to the end of the file.
I know this code does it: awk '/regex/,0'
but the string I need to search for inside the log file looks something like this: ... (4 Replies)
Discussion started by: SkySmart
4 Replies
9. UNIX for Advanced & Expert Users
I have a file like below. I need from each group of messages only first lines after error. Could you pleasde help me to write a correct program?
expected output is like this "Error 126614 in debt instrument header for debt instrument ID 10115537: The
rating reason RATING AFFIRMED selected for... (1 Reply)
Discussion started by: digioleg54
1 Replies
10. Solaris
I have a T5240 with 2 T2 US 8 core.. Theoretically how many ldoms can I configure? (5 Replies)
Discussion started by: Iftikhar Barrie
5 Replies
GCORE(1) General Commands Manual GCORE(1)
NAME
gcore - get core image of running process
SYNOPSIS
gcore [-s][-c core] pid
DESCRIPTION
gcore creates a core image of each specified process, suitable for use with adb(1). By default the core image is written to the file
<pid>.core.
The options are:
-c Write the core file to the specified file instead of <pid>.core.
-s Stop the process while creating the core image and resume it when done. This makes sure that the core dump will be in a consistent
state. The process is resumed even if it was already stopped. Of course, you can obtain the same result by manually stopping the
process with kill(1).
The core image name was changed from core.<pid> to <pid>.core to prevent matching names like core.h and core.c when using programs such as
find(1).
FILES
<process-id>.core The core image.
BUGS
If gcore encounters an error while creating the core image and the -s option was used the process will remain stopped.
Swapped out processes and system processes (the swapper) may not be gcore'd.
4.2 Berkeley Distribution April 15, 1994 GCORE(1)