[MacRuby-devel] [MacRuby] #527: Segmentation fault when stack overflows

MacRuby ruby-noreply at macosforge.org
Wed Dec 30 22:29:39 PST 2009


#527: Segmentation fault when stack overflows
-------------------------------------+--------------------------------------
 Reporter:  haruki.zaemon@…          |       Owner:  lsansonetti@…          
     Type:  defect                   |      Status:  new                    
 Priority:  major                    |   Milestone:                         
Component:  MacRuby                  |    Keywords:  stack overflow segfault
-------------------------------------+--------------------------------------

Comment(by conradwt@…):

 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/>



More information about the MacRuby-devel mailing list