Aim
When running c++ application, we would like to get the core dump when the application is crashed. How to get those files under linux?
Learn from
Steps
Add to ~/.bashrc
ulimit -c unlimited
Add to /etc/sysctl.conf
kernel.core_pattern = core.%e.%p.%t
Run command:
$ sudo sysctl --system
沒有留言:
發佈留言