Previously the stack size was 2048 bytes, which caused stack overflow to be detected after one or two runs of the example.