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

MacRuby ruby-noreply at macosforge.org
Sun Feb 5 07:52:45 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@…):

 Here it is in plain Ruby (no RSpec) and a little bit more debugging
 information (courtesy of my `vm.cpp` changes in #1446):

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

 begin
         nil[]
 rescue Exception => error
         NSLog(error)
 end

 $ macruby test4.rb
 RoxorVM::pop_current_exception (vm.cpp:3607) - Warning: Assertion about to
 fail: ((size_t)pos < current_exceptions.size()); pos = 1;
 current_exceptions.size() = 1
 current_exceptions[1]: "#<NoMethodError: undefined method `[]' for
 nil:NilClass>"
 Assertion failed: ((size_t)pos < current_exceptions.size()), function
 pop_current_exception, file vm.cpp, line 3616.
 Abort trap
 }}}

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



More information about the macruby-tickets mailing list