I'm collecting stacktraces from very large coredumps via /proc/sys/kernel/core_pattern
. The following questions suggest using /proc/pid/core_filter
to reduce the size of large coredumps:
Minimal core dump (stack trace + current frame only)
Selective core dump in Linux - How can I select the dumped sections?
Is it possible to get a Linux coredump that only contains callstack, threads, and local variables?
But, when setting core_filter to '0', the resulting coredump is no longer meaningful to gdb's bt command.
So, I have the following two part question:
1) Is there a tool besides gdb which can extract the stacktrace from these minimal coredumps?
2) Is it possible to parse an ELF Core file to remove the heap segments? This question: What and where are the stack and heap? seems to indicate this might be possible.
Thanks!