https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109806
Alexander Monakov <amonakov at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #13 from Alexander Monakov <amonakov at gcc dot gnu.org> --- 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). This doesn't look like a stack exhaustion and should be a separate bug.