[MacRuby-devel] [MacRuby] #551: NSThread.alloc.initWithTarget segfaulting
MacRuby
ruby-noreply at macosforge.org
Thu Apr 22 14:31:45 PDT 2010
#551: NSThread.alloc.initWithTarget segfaulting
-------------------------------------+--------------------------------------
Reporter: mattaimonetti@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
-------------------------------------+--------------------------------------
Comment(by lsansonetti@…):
Here is a better test:
{{{
framework 'Foundation'
class Foo
def test(obj)
loop { print '*' }
end
end
o = Foo.new
t = NSThread.alloc.initWithTarget(o, selector: :"test:", object: 'dummy')
t.start
10000.times { print '.' }
puts "finished"
}}}
Replacing the "10000.times" loop with a simple "sleep 3" does not cause a
crash anymore, so the problem is likely not related to NSThread at all.
--
Ticket URL: <http://www.macruby.org/trac/ticket/551#comment:1>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list