04-09-2015
Core File Generation
Hi
I am using Linux and I am using Java as well as C++ services running on it.
The ulimit -c is set to around 400Mb.
Whenever any of the service fails they produce a core file.(Actual size of core could be greater than 400Mb).
Whenever my Java service fails I get a core file of size 400Mb (Actual size of this core can be more than 8GB.) .But if my C++ service fails I don't get a core file(even though I know there is a core file generated),as it generates a file which tell that a core file is generated.(Java service also generates a file telling a core file is generated).
Could you please advise, is it only because of ulimit -c?
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am getting core file in local machine after trasfer files to other machine by using scp (secure copy) of SSH in UNIX.
Could any one please tell me how to restrict core file generatation by using scp command. (4 Replies)
Discussion started by: nrsekhar
4 Replies
2. Solaris
Hi, im getting a core dump file in my sun OS version 5.9 while using a complex c++ program. The same program is working without any core error in another system with same sun OS and same version. The program has used structs, LL's and lots of call by references. What may be the reason. will it be a... (3 Replies)
Discussion started by: suresh_kb211
3 Replies
3. Programming
Hi, I am running a c++ program in unix sun OS 5.9. There are two functions in a file which are being used by a third function in the same file. the two functions being used are of the same type. one function is returning a success and the control is redeemed by the calling function. for teh second... (2 Replies)
Discussion started by: suresh_kb211
2 Replies
4. Programming
Hi, I am running a c++ program in unix sun OS 5.9. There are two functions in a file which are being used by a third function in the same file. the two functions being used are of the same type. one function is returning a success and the control is redeemed by the calling function. for teh second... (5 Replies)
Discussion started by: suresh_kb211
5 Replies
5. Programming
Posting again, as previous query had a typo.
=======================================================
Hi, I am running a c++ program in unix AIX machine. There are two functions in a file which are being used by a third function in the same file. the two functions being used are of the same type.... (1 Reply)
Discussion started by: suresh_kb211
1 Replies
6. AIX
Hi, im getting a core dump file in a AIX machine while using a complex c++ program. The same program is working without any core error in another system with sun OS 5.9. The program has used structs, LL's and lots of call by references. What may be the reason. will it be a problem with the OS ? (3 Replies)
Discussion started by: suresh_kb211
3 Replies
7. Shell Programming and Scripting
hi all
i need to generate a report file that contains the following details of files present in a directory.
1. File name
2.Complete path for each files and directory
3.File size
4.Days older
example i have a directory testing that contains sub-directories and some files.
i need to make a... (5 Replies)
Discussion started by: yashwantkumar
5 Replies
8. Shell Programming and Scripting
Hi,
I wanted to create a control file with data in it.
Also wanted to append more points like
1)Row count, then print the first field
2)first line of the file
3)last line of the file
I started with this:-
ls -ltr *.*| awk ' { print $9 "|" $7 $6 $8 "|" $5 } '
sed -n '1p';
sed -n '$p';
... (2 Replies)
Discussion started by: alokbaba
2 Replies
9. Shell Programming and Scripting
Dear all
Hope you are doing good.
I've requirement where in I need to generate a file containing set of SQLs as per the inputs.
My script flow is like reading few parameters using read command to read input to script and process the inputs. However at one of the input, my script has to... (3 Replies)
Discussion started by: tenderfoot
3 Replies
10. Shell Programming and Scripting
Hi Team,
Is it possible to generate the xls OR xlsx file factility in Unix and xls file should be more than one sheet. (2 Replies)
Discussion started by: bmk123
2 Replies
core(4) Kernel Interfaces Manual core(4)
NAME
core - format of core image file
DESCRIPTION
The HP-UX system writes out a file containing a core image of a terminated process when certain signals are received (see signal(5) for the
list of reasons). The most common causes are memory violations, illegal instructions, floating point exceptions, bus errors, and user-gen-
erated quit signals. The core image file is called and is written in the process's working directory (provided it is allowed by normal
access controls). A process with an effective user ID different from its real user ID does not produce a core image.
The file contains sufficient information to determine what the process was doing at the time of its termination. Core file contents con-
sist of objects that represent different segments of a process. Each object is preceded by a data structure, and each data structure
describes the corresponding object following it. The structure is defined in and includes the following members:
The space and addr members specify the virtual memory address in the process where the described object began. The len member is the
length of the object in bytes.
The following possible values for type are defined in
Process data as it existed at the time the core image was created.
This includes initialized data, uninitialized data, and the heap at the time the core image is generated.
A compiler-dependent data structure containing the exec data structure,
the magic number of the executable file, and the command (see the declaration of the structure in
The version number of the core format produced.
This number changes with each HP-UX release where the core format itself has changed. However, it does not neces-
sarily change with every HP-UX release. can thus be easily used by core-reading tools to determine whether they
are compatible with a given core image. This type is expressed by a four-byte binary integer.
The null-terminated version string associated with the kernel
at the time the core image was generated.
An architecture-dependent data structure
containing per-process information such as hardware register contents. See the declaration of the structure in
Process stack contents at the time the core image was created.
Objects dumped in a image file are not arranged in any particular order. Use information to determine the type of the object that immedi-
ately follows it.
SEE ALSO
adb(1), coreadm(1M), coreadm(2), setuid(2), crt0(3), end(3C), signal(5).
core(4)