How to generate a core dump in Linux on a segmentation fault?

前端 未结 12 1129
余生分开走
余生分开走 2020-11-22 17:06

I have a process in Linux that\'s getting a segmentation fault. How can I tell it to generate a core dump when it fails?

12条回答
  •  隐瞒了意图╮
    2020-11-22 17:30

    By default you will get a core file. Check to see that the current directory of the process is writable, or no core file will be created.

提交回复
热议问题