Why are core dump files generated?

前端 未结 7 558
鱼传尺愫
鱼传尺愫 2020-12-05 11:10

Sometimes when I run my code, a core dump file is generated when I terminate the program by Ctrl+\\. The file name is of the form core.*.

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 11:38

    ctrl + \ sends signal SIGQUIT to the process. According to POSIX.1 standard, the default action for this signal is to generate a core.

    SIGILL, SIGABRT, SIGFPE, SIGSEGV are other cases when system will generate a core.

    Please refer "man 7 signal" on your system for more details.

提交回复
热议问题