Skip to content

Fix #596

Marius Gerbershagen requested to merge c-stack-fixes into develop

The bug was caused by getrlimit returning nonsense (namely RLIM_INFINITY). We now do a sanity check and use a default of 1 MB if that happens.

While debugging I also found another issue. The code was supposed to use the operating systems default stack size unless the user specified another value in ecl_option_values[ECL_OPT_C_STACK_SIZE]. However due to a wrong check in config-internal.h we in fact increased the stack size to at least 1 MB.

Merge request reports