[MacRuby] #1448: Pointer#to_object causes a segmentation fault

MacRuby ruby-noreply at macosforge.org
Tue Feb 7 06:11:43 PST 2012


#1448: Pointer#to_object causes a segmentation fault
--------------------------------+-------------------------------------------
 Reporter:  l.rieder@…          |       Owner:  lsansonetti@…        
     Type:  defect              |      Status:  new                  
 Priority:  critical            |   Milestone:                       
Component:  MacRuby             |    Keywords:  segfault             
--------------------------------+-------------------------------------------
 I am running this bit of code:

 {{{
 $ macruby -e "framework 'cocoa'; p
 NSJSONSerialization.dataWithJSONObject({}, options: 0, error:
 nil).bytes.to_object"Segmentation
 Segmentation fault: 11
 }}}

 Expected output would be a String like "{}".
 It results in a segmentation fault. Here is the log
 https://gist.github.com/1759848.

 I am running macruby-nightly.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1448>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list