On Tue, Jan 31, 2012 at 3:40 PM, Eliot Miranda <eliot.miranda@gmail.com> wrote:

On Mon, Jan 30, 2012 at 9:18 PM, S Krish <krishnamachari.sudhakar@gmail.com> wrote:
In general why is there not a catch all for Stack Overflow and infinite loops.

There is, low space (and user interrupt for flat infinite loops). �But the low space interrupt machinery is easily broken. �It is difficult to test, and an increasingly silly approach on modern machines with huge amounts of memory. �We need to think again.

GemStone has a user variable for maximum stack depth (defaults to 10000 I think). The exception it raises is not so much a clever solution to the halting problem but it catches some human errors, which is nice.