[MacRuby] #634: Dispatch::Job fails on macruby_nightly-2010-03-19-1254
#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 ------------------------------------+--------------------------------------- {{{ irb(main):001:0> require 'dispatch' => true irb(main):002:0> job = Dispatch::Job.new { Math.sqrt(10*100) } Assertion failed: (ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"), function getAnalysisID, file /SourceCache/llvm-trunk/include/llvm/PassAnalysisSupport.h, line 220. Abort trap }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/634> MacRuby <http://macruby.org/>
#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/>
#634: Dispatch::Job fails with macirb ------------------------------------+--------------------------------------- Reporter: igor.evsukov@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: gcd ------------------------------------+--------------------------------------- -- Ticket URL: <http://www.macruby.org/trac/ticket/634#comment:2> MacRuby <http://macruby.org/>
#634: Dispatch::Job fails with macirb ------------------------------------+--------------------------------------- Reporter: igor.evsukov@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: gcd ------------------------------------+--------------------------------------- Comment(by ernest.prabhakar@…): I'm getting sporadic failures simply in launching irb, as well as calling Dispatch. Do you get it consistently with one form and not the other? Also, can you do: $ macirb
require 'dispatch' job = Dispatch::Job.new job.add { Math.sqrt 10*10 } job.value
i.e, does it only happen (inconsistently) when you pass a block to 'new'? -- Ticket URL: <http://www.macruby.org/trac/ticket/634#comment:4> MacRuby <http://macruby.org/>
#634: Dispatch::Job fails with macirb ------------------------------------+--------------------------------------- Reporter: igor.evsukov@… | Owner: ernest.prabhakar@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: gcd ------------------------------------+--------------------------------------- Changes (by ernest.prabhakar@…): * owner: lsansonetti@… => ernest.prabhakar@… -- Ticket URL: <http://www.macruby.org/trac/ticket/634#comment:5> MacRuby <http://macruby.org/>
#634: Dispatch::Job fails with macirb ------------------------------------+--------------------------------------- Reporter: igor.evsukov@… | Owner: ernest.prabhakar@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: gcd | ------------------------------------+--------------------------------------- Changes (by ernest.prabhakar@…): * status: new => closed * resolution: => fixed Comment: Seems to be working now. will mark as closed. -- Ticket URL: <http://www.macruby.org/trac/ticket/634#comment:6> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby