title: What catches stack overflow?
body: <p>If a stack keeps growing and growing, due to something like infinite recursion, what catches this and halts execution?  I would imagine the program would (erroneously) just start writing into the heap, as if it was stack memory, and keep on going until a potential crash due to heap corruption?</p>