Coredump is getting truncated

后端 未结 6 1403
孤城傲影
孤城傲影 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:25

    I had the same problem with core files getting truncated.

    Further investigation showed that ulimit -f (aka file size, RLIMIT_FSIZE) also affects core files, so check that limit is also unlimited / suitably high. [I saw this on Linux kernel 3.2.0 / debian wheezy.]

提交回复
热议问题