https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79876
--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > and see what it prints? RLIMIT_STACK cur 67104768 max 67104768 PTHREAD_STACK_MIN 8192 main thread pthread_get_stacksize_np 67104768 other thread pthread_get_stacksize_np 524288 other thread pthread_get_stacksize_np 2097152 and it does not depend on OMP_STACKSIZE.