linux - How to limit the size of core dump file when generating it using GDB -
i running embedded application on arm9 board, total flash size 180mb only. able run gdb
, when do
(gdb) generate-core-dump
i error
warning: memory read failed corefile section, 1048576 bytes @ 0x4156c000. warning: memory read failed corefile section, 1048576 bytes @ 0x50c00000. saved corefile core.5546 program running. quit anyway (and detach it)? (y or n) [answered y; input not terminal] tamper detected **********outside ifelse 0********* length validation failed
i set ulimit -c 50000
still core dump exceeds limit. when ls -l
check file size on 300 mb. in case how should limit size of core dump?
gdb not respect 'ulimit -c', kernel does.
it's not clear whether run gdb on target board, or on development host (and using gdbserver on target). should use latter, allow collect full core dump.
truncated core dumps pain anyway, not contain info need debug problem.
Comments
Post a Comment