https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109806
--- Comment #14 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Alexander Monakov from comment #13) > The 128KB stack size is for *secondary* threads on musl (i.e. those created > via pthread_create). The main thread has the same stack as on glibc (GCC > extends it to 128MB unless there's a hard limit). To be fair, I didn't know if gcc did everything in a single thread. Thanks. > > This doesn't look like a stack exhaustion and should be a separate bug. I asked on IRC and was pointed here rather than file a dupe, but I'll file one now in that case.