Ticket #511 (closed defect: fixed)
GCD crash with indirect method access
| Reported by: | joshua.ballanco@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.7 |
| Component: | MacRuby | Keywords: | GCD |
| Cc: | darrin@… |
Description (last modified by joshua.ballanco@…) (diff)
The following code will crash when I run it on my Mac Pro (8x2.26 GHz):
#!/usr/local/bin/macruby
class Foo
def doit
end
end
class Bar
def initialize
@foo = Foo.new
end
def step
100.times{ @foo.doit }
end
end
@bars = []
1000.times { @bars << Bar.new }
steps = Dispatch::Group.new
@bars.each do |bar|
Dispatch::Queue.concurrent.async(steps) { bar.step }
end
steps.wait
Commenting out the "@foo.doit" line prevents the crash.
Change History
Note: See
TracTickets for help on using
tickets.

