linux core dump debug

Posted 鹅要长大

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux core dump debug相关的知识,希望对你有一定的参考价值。

1.check core dump;

ulimit -c
or 
ulimit -a

 

nvidia@tegra-ubuntu:~$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 31156
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 31156
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

2.set

nvidia@tegra-ubuntu:~$ ulimit -c unlimited
nvidia@tegra-ubuntu:~$ ulimit -c
unlimited
nvidia@tegra-ubuntu:~$ ulimit -c 1024
nvidia@tegra-ubuntu:~$ ulimit -c
1024

$ulimit -c unlimited  (只对当前shell进程有效)
或在~/.bashrc 的最后加入: ulimit -c unlimited (一劳永逸)

3.gdb with core

 

re:

1.https://www.cnblogs.com/bodhitree/p/5850212.html

以上是关于linux core dump debug的主要内容,如果未能解决你的问题,请参考以下文章

什么是core dump linux下用core和gdb查询出现"段错误"的地方

linux调试工具glibc的演示分析-core dump double free

linux core dump

linux下core dump

Linux 设置core dump

linux下core dump总结