Recently, I noticed an increase in the size of core dumps created by my application. Initially, they were only about 5 MB in size and contained about 5 stack frames, and now I have core dumps> 2 GB, and the information contained in them is no different from smaller dumps.
Is there any way to control the size of the generated core dumps? Shouldn't they be at least smaller than the binary application itself?
The binaries are compiled in this way:
- Compiled in release mode with character debugging (i.e., the -g option of the compiler in NCA).
- Debug symbols are copied to a separate file and devoid of a binary file.
- Added a link to GNU debugging symbols to binary.
At the beginning of the application, there is a call to setrlimit , which sets the kernel to infinity. This is problem?
linux coredump
themoondothshine
source share