From: Bil Kleb Date: 2004-10-03T03:20:27+09:00 Subject: Re: IA64 Ruby compilation sucessful Shashank Date asked: > Bil Kleb wrote: >> >> Anyway, instead of only 44 levels with the crippled stack, we > >> managed to get to 105k stack levels before it seg-faulted and >> dumped a >2GB core(!) with our little test code, > > Just curious ... how many stack levels before it seg-faulted on the > 32-bit version? $ cat > hello.rb def helloLevel level puts "hello world! "+level.to_s helloLevel(level+1) end helloLevel 0 [Ctrl-d] $ ruby hello.rb [..] hello world! 4542 hello.rb:3:in `helloLevel': stack level too deep (SystemStackError) from hello.rb:3:in `helloLevel' on linux x86. Note: it does not segfault, but raises an exception. Adam Williams reports 1257 on OSX.3. Regards, -- Bil from Ruby Conf '04