[MacRuby] #1411: Timeout throws fatal exception

MacRuby ruby-noreply at macosforge.org
Fri Nov 18 21:08:34 PST 2011


#1411: Timeout throws fatal exception
----------------------------------+-----------------------------------------
 Reporter:  willuni@…             |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:  Timeout              
----------------------------------+-----------------------------------------

Comment(by watson1978@…):

 It seems that Exception#backtrace returns nil when was raised an exception
 by Thread#raise from another thread.

 {{{
 t = Thread.start {
   begin
     sleep 10
   rescue Exception => e
     e.backtrace
   end
 }

 t.raise RuntimeError, "stop."
 p t.value
 }}}

 Result:
 {{{
 $ ruby19 tt.rb
 ["tt.rb:3:in `sleep'", "tt.rb:3:in `block in <main>'"]

 $ macruby tt.rb
 nil
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1411#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list