Linux core dumps are too large!
Posted
by themoondothshine
on Stack Overflow
See other posts from Stack Overflow
or by themoondothshine
Published on 2010-05-04T04:51:37Z
Indexed on
2010/05/04
4:58 UTC
Read the original article
Hit count: 356
Hey guys,
Recently I've been noticing an increase in the size of the core dumps generated by my application. Initially, they were just around 5MB in size and contained around 5 stack frames, and now I have core dumps of > 2GBs and the information contained within them are no different from the smaller dumps.
Is there any way I can control the size of core dumps generated? Shouldn't they be at least smaller than the application binary itself?
Binaries are compiled in this way:
- Compiled in release mode with debug symbols (ie, -g compiler option in GCC).
- Debug symbols are copied onto a
separate file and stripped from the
binary. - A GNU debug symbols link is added to the binary.
At the beginning of the application, there's a call to setrlimit
which sets the core limit to infinity -- Is this the problem?
© Stack Overflow or respective owner