[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help to reproduce the bug (Was: Re: State of Ruby)



At 18:54 -0500 02 Oct 2003, Aaron Schrab <aaron@schrab.com> wrote:
> 21)frell$ ulimit -s 8192
> 22)frell$ irb1.8
> irb(main):001:0>

I've done some additional experiments with this to find out exactly
where the stacksize becomes a problem.  It's fine as long as the limit
on the stacksize is <= 4194303 KiB,  but dies instantly if the stack
size is 4194304 KiB or higher.  This is the point where more than 32
bits are needed to store an address.


irb(main):001:0> $ 91)frell$ ulimit -s 4194303
92)frell$ irb1.8
irb(main):001:0> $ 93)frell$ ulimit -s 4194304
94)frell$ irb1.8
/usr/lib/ruby/1.8/irb/context.rb:77:in `attr_accessor': stack level too
deep (SystemStackError)

-- 
Aaron Schrab     aaron@schrab.com      http://www.schrab.com/aaron/



Reply to: