From: "Martin J. Dürst" Date: 2011-02-24T10:02:23+09:00 Subject: [ruby-core:35357] Re: eval'ing large strings runs out of stack space? Hello Roger, On 2011/02/24 5:28, Roger Pack wrote: > Hello all. > This code: > > eval (['000000000']*500000).inspect This doesn't result in a large string, but in a large array. > with 1.9.2 (but not jruby) > > causes this: > > das_inspect:0: stack level too deep (SystemStackError) This may be related to http://redmine.ruby-lang.org/issues/982. Or it may not. In bug 982, an explicit array literal is causing the problem (the first ruby invocation on the command line just creates a ruby program with a long array literal, the stack overflow occurs in the second ruby invocation (after the pipe). > Is this expected? It shouldn't. Regards, Martin. -- #-# Martin J. D�rst, Professor, Aoyama Gakuin University #-# http://www.sw.it.aoyama.ac.jp mailto:duerst@it.aoyama.ac.jp