Coredump is getting truncated

后端 未结 6 1408
孤城傲影
孤城傲影 2021-01-04 00:57

I am setting

ulimit -c unlimited. 

And in c++ program we are doing

struct rlimit corelimit;
  if (getrlimit(RLIMIT_CORE,          


        
6条回答
  •  余生分开走
    2021-01-04 01:19

    Similar issue happened when I killed the program manually with kill -3. It happened simply because I did not wait enough time for core file to finish generating.

    Make sure that the file stopped growing in size, and only then open it.

提交回复
热议问题