close


如果 core file 一直出不來的話,
使用 ulimit -a 看第一行是多少。
0 的話代表 dump core 被關掉啦,
利用 ulimit -c unlimited 來將它開啟至無限制大小。
再重跑一次程式看看。

如果有 coredump 會有 (core dumped) 字樣 show 出來。

在 code 裡直接呼叫 abort(); 就會產生 core dump 啦!!

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 forteallan 的頭像
    forteallan

    Ching's blog

    forteallan 發表在 痞客邦 留言(0) 人氣()