https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117291
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- I agree it's difficult to solve. GCC tries to up the stack limit to unlimited, why isn't this working for you? Maybe we should remember the failure to do so and report that (and make the segfault handler use an alternate stack ...)?