#634: Dispatch::Job fails on macruby_nightly-2010-03-19-1254 ------------------------------------+--------------------------------------- Reporter: igor.evsu...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: gcd ------------------------------------+---------------------------------------
Comment(by martinlagarde...@…): Note than this is only in `macirb`, it works fine with macruby: {{{ $> macruby -e 'require "dispatch"; p Dispatch::Job.new { Math.sqrt(10*100) }' #<Dispatch::Job:0x2000c0a60 @queue=com.apple.root.default-priority @group=#<Dispatch::Group:0x2000d6460> @values=[]> $> $> macirb >> require 'dispatch' => true >> job = Dispatch::Job.new { Math.sqrt 10*10 } Assertion failed: (ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"), function getAnalysisID, file /private/tmp/llvm-trunk/include/llvm/PassAnalysisSupport.h, line 220. Abort trap }}} However, it works when another (simpler?) computation is done before: {{{ $> macirb >> require 'dispatch' => true >> job = Dispatch::Job.new { 10 * 100 } => #<Dispatch::Job:0x2002281c0 @queue=com.apple.root.default-priority @group=#<Dispatch::Group:0x200079300> @values=[1000]> >> job = Dispatch::Job.new { Math.sqrt 10*10 } => #<Dispatch::Job:0x200248580 @queue=com.apple.root.default-priority @group=#<Dispatch::Group:0x200240600> @values=[10.0]> }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/634#comment:1> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel