https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94910
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- I was able to reproduce that! The problem is the number of fake stacks that are exhausted. I see 27000x: FakeStack (stack_size_log=20):succ after 0 FakeStack (stack_size_log=20):succ after 0 FakeStack (stack_size_log=20):succ after 0 FakeStack (stack_size_log=20):succ after 0 ... FakeStack (stack_size_log=20):bail out after 8192 FakeStack (stack_size_log=20):bail out after 16384 FakeStack (stack_size_log=20):bail out after 4096 FakeStack (stack_size_log=20):bail out after 8192 ... So it seems that the program uses enormous number of stacks. Or the run-time does not release them in an efficient way.