posts - 535,comments - 60,views - 197万
08 2008 档案
获取linux下当机堆栈
摘要:1。在~/.bashrc 的最后加入: ulimit -c unlimited 测了一下,这样对于每个shell都是有效的,可以获取到当机堆栈 2。在程序里加入 #include #include rlimit sLimit; sLimit.rlim_cur = -1; sLimit.rlim_max = -1; ::setrlimit(RLIMIT_CORE, &sLimit); 阅读全文
posted @ 2008-08-22 10:48 凌度 阅读(305) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示