Coredump is getting truncated

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

    Hard limits and soft limits have some specifics to them that can be a little hairy: see this about using sysctl to make name the changes last.

    There is a file you can edit that should make the limit sizes last, although there is probably a corresponding sysctl command that will do so...

提交回复
热议问题