https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106767
Andi Kleen <andi-gcc at firstfloor dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andi-gcc at firstfloor dot org --- Comment #7 from Andi Kleen <andi-gcc at firstfloor dot org> --- IMHO the segfault handler should use sigaltstack when the host supports it to set up a separate stack. Then it wouldn't just segfault on stack overflow, but you would at least get an ICE. Maybe it could even detect stack overflow, but that would likely need to know at least the stack growth direction.