From: Thomas Hurst Date: 2005-03-19T10:15:56+09:00 Subject: Re: Maximum stack depth * Robert Klemme (bob.news@gmx.net) wrote: > > 1891 levels in my old redhat linux 7.3 box, ruby 1.8.2 built from source > > 09:49:43 [source]: ruby -e 'def t(i) p i;t(i+1) end;t 0' > 13283 > -e:1:in `p': stack level too deep (SystemStackError) > 09:49:48 [source]: uname -a > CYGWIN_NT-5.0 bond 1.5.12(0.116/4/2) 2004-11-10 08:34 i686 unknown unknown On FreeBSD 5: 49165 -e:1:in `inspect': stack level too deep (SystemStackError) I think I can live with that. Solaris 9 fares somewhat worse: 3921 -e:1:in `t': stack level too deep (SystemStackError) But not as badly as Linux 2.6.8.1: 2091 -e:1:in `p': stack level too deep (SystemStackError) Or WinXP: 1330 -e:1:in `p': stack level too deep (SystemStackError) I wonder, is it safe to rescue SystemStackError? It seems to work, but can the interpreter be trusted after this? -- Thomas 'Freaky' Hurst http://hur.st/