Linux core dumps are too large!
- by themoondothshine
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?