[MacRuby] #1313: #to_json will cause a stack overflow if generating a collection with objective-c objects

MacRuby ruby-noreply at macosforge.org
Sat Jun 4 02:47:09 PDT 2011


#1313: #to_json will cause a stack overflow if generating a collection with
objective-c objects
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  critical                |   Milestone:                       
Component:  MacRuby                 |    Keywords:  reduction            
------------------------------------+---------------------------------------

Comment(by watson1978@…):

 'json/pure' also crash with stack overflow.

 {{{
 $ macruby -r json/pure -e "[NSString.alloc.initWithString('')].to_json"
 zsh: segmentation fault  macruby -r json/pure -e
 "[NSString.alloc.initWithString('')].to_json"
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1313#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list