Core dump file is not generated

前端 未结 13 711
情书的邮戳
情书的邮戳 2020-11-28 06:46

Every time, my application crash a core dump file is not generated. I remember that few days ago, on another server it was generated. I\'m running the app u

13条回答
  •  -上瘾入骨i
    2020-11-28 06:56

    Check:

    $ sysctl kernel.core_pattern
    

    to see how your dumps are created (%e will be the process name, and %t will be the system time).

    If you've Ubuntu, your dumps are created by apport in /var/crash, but in different format (edit the file to see it).

    You can test it by:

    sleep 10 &
    killall -SIGSEGV sleep
    

    If core dumping is successful, you will see “(core dumped)” after the segmentation fault indication.

    Read more:

    How to generate core dump file in Ubuntu


    Ubuntu

    Please read more at:

    https://wiki.ubuntu.com/Apport

提交回复
热议问题