[MacRuby-devel] [MacRuby] #780: Segfault occurs when calls Proc after GC was executed.

MacRuby ruby-noreply at macosforge.org
Thu Jul 8 23:42:21 PDT 2010


#780: Segfault occurs when calls Proc after GC was executed.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Test Script:
 {{{
 $ cat test_proc.rb
 # '[ruby-core:14885]'
 class A
   def get_block
     proc {
       puts "ok"
     }
   end
 end
 block = A.new.get_block
 GC.start
 block.call
 }}}

 {{{
 $ macruby test_proc.rb
 zsh: segmentation fault  macruby test_proc.rb
 }}}

 when GC is disabled:
 {{{
 $ GC_DISABLE=true macruby test_proc.rb
 ok
 }}}

 I referred to Ruby's http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby
 /ruby-core/14983

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



More information about the MacRuby-devel mailing list