以下のように ulimit -s の値に応じて stack level too deep と Segmentation Fault のどちらかが発生するようです。 $ .prefix/bin/ruby -v ruby 2.0.0dev (2012-09-29 trunk 37053) [x86_64-darwin12.1.0] $ ulimit -s 8192 $ .prefix/bin/ruby -e 'p RubyVM::InstructionSequence.compile("1+"*10000+"1")' -e:1: stack level too deep (SystemStackError) $ ulimit -s 32768 $ .prefix/bin/ruby -e 'p RubyVM::InstructionSequence.compile("1+"*10000+"1")