[MacRuby] #874: Abort occurs when when calls Thread#raise / #kill when Thread#join is called in block of Thread.

MacRuby ruby-noreply at macosforge.org
Mon Aug 23 17:37:17 PDT 2010


#874: Abort occurs when when calls Thread#raise / #kill when Thread#join is
called in block of Thread.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 {{{
 #!ruby
 $ cat test.rb
 t1 = Thread.new {sleep 10}

 t2 = Thread.new {
   t1.join
 }

 sleep 1
 t2.raise
 #t2.kill
 }}}

 Result of MacRuby Trunk:
 {{{
 $ DYLD_LIBRARY_PATH=. ./macruby -I./lib test.rb
 terminate called after throwing an instance of
 'RoxorThreadRaiseException*'
 zsh: abort      DYLD_LIBRARY_PATH=. ./macruby -I./lib test.rb
 }}}

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



More information about the macruby-tickets mailing list