#780: Segfault occurs when calls Proc after GC was executed.
----------------------------------+-----------------------------------------
Reporter: watson1...@… | Owner: lsansone...@…
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel