https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79876
--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- On my Linux system, I can get a crash with OMP_STACKSIZE=500k ./a.out and successfull execution with OMP_STACKSIZE=1M ./a.out What happens if you try these commands?