利用core文件调试
首先用-g选项编译程序,然后用ulimit -c unlimited打开core文件限制to make the changes permanent, add the following line to /etc/sysctl.conf:kernel.core_pattern = core.%e.%psysctl is a similar tool to ulimit: It allows to configure kernelparameters at runtime. If you wish to keep settings persistent acrossreboots you should edit /etc/sysctl.conf - be aware that wrong settingsmay break things in unforeseen ways.用/proc/sys/kernel/core_pattern控制core文件产生的地方在测试站上root: cat /proc/sys/kernel/corepattern/tmp/core.%p%e也就是说,所有c
...