[MacRuby] #1350: Segfault occurs when invoked an alias within some threads
MacRuby
ruby-noreply at macosforge.org
Tue Jul 5 17:57:52 PDT 2011
#1350: Segfault occurs when invoked an alias within some threads
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Comment(by lsansonetti@…):
With
https://github.com/MacRuby/MacRuby/commit/d08f39ddfa8b1816e92712334abf544af9716306
it doesn't seem to crash anymore.
However, because of lazy JIT compilation of methods, it fails very often
with:
{{{
/Users/lrz/src/macruby-master/t2.rb:18:in `block': undefined method `bar'
for class `Foo' (NameError)
from /Users/lrz/src/macruby-master/t2.rb:17:in `<main>'
}}}
Changing the snippet like this makes it work:
{{{
# ...
f1 = Foo.new
f1.bar('hey') # <- this forces the #bar method JIT compilation &
registration
f2 = f1.clone
# ...
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1350#comment:1>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list