This seems to be related to tail call optimizations, since compiling with -fno-optimize-sibling-calls makes the problem go away
This seems to be related to tail call optimizations, since compiling with -fno-optimize- sibling- calls makes the problem go away