How to get core dumps ?
13/10/03 19:01
I have turned on crash reporting but I still don't get my cores ! What's missing ? |
You also need to raise the core dump size limit !
From the bash shell
ulimit -c unlimited
From the C and alike shells
limit coredumpsize unlimited
From inside your code
#include
#include
#include
struct rlimit corelimit;
getrlimit(RLIMIT_CORE, &corelimit);
corelimit.rlim_cur = corelimit.rlim_max; // or any > 0 value
setrlimit(RLIMIT_CORE, &corelimit);
From the bash shell
ulimit -c unlimited
From the C and alike shells
limit coredumpsize unlimited
From inside your code
#include
#include
#include
struct rlimit corelimit;
getrlimit(RLIMIT_CORE, &corelimit);
corelimit.rlim_cur = corelimit.rlim_max; // or any > 0 value
setrlimit(RLIMIT_CORE, &corelimit);