#527: Segmentation fault when stack overflows
-------------------------------------+--------------------------------------
Reporter: haruki.zae...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords: stack overflow segfault
-------------------------------------+--------------------------------------
Comment(by conra...@…):
Yes, I agree that MacRuby should generate an exception. For example, in
Ruby 1.9.1/1.9.2, the following is generated:
{{{
$ ruby stack-overflow.rb
stack-overflow.rb:6:in `b': stack level too deep (SystemStackError)
from stack-overflow.rb:2:in `a'
from stack-overflow.rb:6:in `b'
from stack-overflow.rb:2:in `a'
from stack-overflow.rb:6:in `b'
from stack-overflow.rb:2:in `a'
from stack-overflow.rb:6:in `b'
from stack-overflow.rb:2:in `a'
from stack-overflow.rb:6:in `b'
... 8718 levels...
from stack-overflow.rb:2:in `a'
from stack-overflow.rb:6:in `b'
from stack-overflow.rb:2:in `a'
from stack-overflow.rb:9:in `<main>'
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/527#comment:4>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel