且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何生成在Ubuntu核心转储文件

更新时间:2023-09-18 09:34:22

检查的ulimit -c 的输出中,如果输出0,这就是为什么你不具备核心转储。

Check the ouput of ulimit -c, if it output 0, this is why you don't have core dumped.

使用

的ulimit -c无限

要允许创建核心(也许替换无限由一个真正的大小限制是更安全)。

to allow core creation (maybe replace unlimited by a real size limit to be more secure) .