confirm that stack overflow occurs with only 1000 iterations