[MacRuby-devel] [MacRuby] #634: Dispatch::Job fails on macruby_nightly-2010-03-19-1254
MacRuby
ruby-noreply at macosforge.org
Tue Apr 27 15:55:20 PDT 2010
#634: Dispatch::Job fails on macruby_nightly-2010-03-19-1254
------------------------------------+---------------------------------------
Reporter: igor.evsukov@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.6
Component: MacRuby | Keywords: gcd
------------------------------------+---------------------------------------
Comment(by martinlagardette@…):
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/>
More information about the MacRuby-devel
mailing list