[MacRuby] #1447: Crash - Assertion failed in RoxorVM::pop_current_exception

MacRuby ruby-noreply at macosforge.org
Sun Feb 5 07:45:48 PST 2012


#1447: Crash - Assertion failed in RoxorVM::pop_current_exception
--------------------------------+-------------------------------------------
 Reporter:  msabramo@…          |       Owner:  lsansonetti@…        
     Type:  defect              |      Status:  new                  
 Priority:  major               |   Milestone:                       
Component:  MacRuby             |    Keywords:  crash, GCD           
--------------------------------+-------------------------------------------

Comment(by msabramo@…):

 In constrast, if I change `error` to `error.inspect`, then it's okay:

 {{{
 $ cat test4.spec
 framework 'Foundation'

 describe 'Stuff' do
   it 'should not crash' do
     begin
       nil[]
         rescue Exception => error
       NSLog(error.inspect)
     end
   end
 end

 $ macrspec -f d test4.spec

 Stuff
 2012-02-05 07:44:27.056 macruby[69053:903] #<NoMethodError: undefined
 method `[]' for nil:NilClass>
   should not crash

 Finished in 0.27099 seconds
 1 example, 0 failures
 }}}

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



More information about the macruby-tickets mailing list