Unable to create a core file for my crashed program

前端 未结 4 2440
遥遥无期
遥遥无期 2021-02-20 13:30

I am using Ubuntu 12.04 LTS. I wrote a simple program as follows to create crash

// null.c
#include

int main()
{
   int *p = NULL;
   int k=*p;
          


        
4条回答
  •  名媛妹妹
    2021-02-20 14:20

    You need to adjust your core dump size limit with following command:

    ulimit -S -c maximum-core-dump-size

    The the value is given in Kb.

提交回复
热议问题