码迷,mamicode.com
首页 > 系统相关 > 详细

linux core dump debug

时间:2018-08-28 21:11:13      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:VID   blog   priority   dia   sage   .bashrc   ted   strong   shell   

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

标签:VID   blog   priority   dia   sage   .bashrc   ted   strong   shell   

原文地址:https://www.cnblogs.com/happyamyhope/p/9550638.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!