is there any way to find out the optimal/would be size of the cor dump file generated by the system while a process got terminated abnormally?
Basically we have been asked to provide the size of the core dump file being generated by the administrators who maintained the UNIX boxes. Currently it is 1GB but it easily exceed this allocated space. So we are looking for bigger suitable size.
is there any way to find out the optimal/would be size of the core dump file generated by the system while a process got terminated abnormally?
Basically we have been asked to provide the size of the core dump file being generated by the administrators who maintained the UNIX boxes. Currently it is 1GB but it easily exceeds this allocated space. So we are looking for bigger suitable size.
Please help advice.
Thanks,
Pushp.
Last edited by pushp.gahlot; 08-06-2007 at 10:44 AM..
How about ensuring that a "limit" won't be gone over?
bash and ksh have a builtin "ulimit" ksh, for example allows you to specify the max possible core size
on a per process basis.
The size command gives the amount of space the image file (executable) will use
when it is run. If there is a lot of dynamic memory allocation it will not show up.
try: man size
Plus, production code should NOT be dumping core. That is an awful idea. If the code is dumping because of SIGBUS or SIGSEGV, you need to fix it, not allocate more core space. If some admin is terminating the process and forcing core dumps, you might want to look at adopting different procedures.
but i was looking if there is any way we can find out the maximum possible size of generated core file so that we can allocate a 3-4 GB space for core file.
Try instrumenting your code during a couple of test runs:
You can call getrusage() at the end of a run to see the amount of stack and heap memory your program has used. Then you can add the size of the "text" data segment (output of size command).
This sum will be very close to the max core size.
If you are worried only about certain signals causing core, then trap those signals, and in the signal trap call getrusage(). Again we are instrumenting the code.
Remove the instrumentation for production code once you have a handle on the situation.
I am new to UNIX.
My Application is using c (.so files) and Java code.
My application crashes and CORE DUMP file is generated ,which is huge.
Now I want to view the CORE DUMP file to debug the application using dbx without starting process again.
By only using the CORE DUMP file and dbx ,can i... (1 Reply)
Hi,
I have got core dump stating "core.bash.29846" so i am unable to open.
How to open the core dump file for further analysis?
Reagards
Vanitha (7 Replies)
Hi Guys,
I was wondering if somebody could give me a link to a very good source of information or document about core dump process and How to's about it. I have also googled it and found some articles myself.
Thanks
Messi (1 Reply)
Segmentation fault(core dumped)
but I cant find core file any where. how to make it out?
I try the command:ulimit -c unlimited, I even added it to the .bashrc file.And I removed ulimit setting in /etc/init.d/function. And there's no ulimit setting in /etc/profile. And I tried sudo find /... (8 Replies)
how to view core dumped file using gdb and how to extract information from the coredumped file.can we get similar information from the other utilites like strace or ptrace. (2 Replies)
Hi All,
May be it is a stupid question, but, I would like to know what is the advantage using a core dump file at the moment of debugging using gdb.
I know a core dump has information about the state of the application when it crashed, but, what is the difference between debugging using the... (2 Replies)
by what name does a core dump file stored???
like i wrote a test code:
//dump.c
main()
{
char *p=NULL;
printf("%s",p);
}
of course the above code will produce a segmentation fault. but i cant see any file named core in my CWD. am using SUN0S 5.9 (6 Replies)
Hi All
I am new for this forum. I have a core file by using gdb and bt cmd I got the function name but I want to the exact cause of the core dump because of I can not reproduse the binary so if any one know the cmd plz plz plz let me know. (0 Replies)