#447: GCD Crashes
------------------------------+---------------------------------------------
 Reporter:  p...@…            |       Owner:  lsansone...@…        
     Type:  defect            |      Status:  new                  
 Priority:  major             |   Milestone:  MacRuby 0.5          
Component:  MacRuby           |    Keywords:                       
------------------------------+---------------------------------------------
 I've been playing with the GCD support in 0.5, and I can get it to
 misbehave consistently with a fairly simple script (attached.)

 Various things happen when this script is run. Sometimes I get a crash
 with the assertion below, sometimes I get a seg fault.

 Assertion failed: ((arity.max == -1) | | (argc <= arity.max)), function
 !__rb_vm_fix_args, file dispatcher.cpp, line 29.

 Sometimes it runs mostly ok, but spits out NaN instead of the correct
 value at random intervals.

 Something to do with the block being prematurely garbage collected
 perhaps?

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

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to