1.check core dump;
ulimit -c or ulimit -a
[email protected]:~$ 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
[email protected]:~$ ulimit -c unlimited [email protected]-ubuntu:~$ ulimit -c unlimited [email protected]-ubuntu:~$ ulimit -c 1024 [email protected]-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
原文地址:https://www.cnblogs.com/happyamyhope/p/9550638.html
时间: 2024-08-04 20:19:52