#1446: Add additional diagnostic info when assertion fails in RoxorVM::pop_current_exception --------------------------------+------------------------------------------- Reporter: msabramo@… | Owner: lsansonetti@… Type: enhancement | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by msabramo@…): Sample output: {{{ $ DYLD_LIBRARY_PATH=~/dev/git-repos/MacRuby ~/dev/git- repos/MacRuby/macruby test4.rb ... resolving -[NilClass []] resolving -[NilClass []] resolving -[NilClass []:] resolving -[NoMethodError to_str] rb_vm_raise (vm.cpp:3684): exception = "#<NoMethodError: undefined method `[]' for nil:NilClass>" push_current_exception (vm.cpp:3598): exc = "#<NoMethodError: undefined method `[]' for nil:NilClass>" __vm_raise (vm.cpp:3568): rb_exc = "#<NoMethodError: undefined method `[]' for nil:NilClass>" rb_vm_is_eh_active (vm.cpp:3937): current_exception = "#<NoMethodError: undefined method `[]' for nil:NilClass>" resolving -[TopLevel NSLog:] resolving -[TopLevel NSLog:] resolving -[TopLevel NSLog:] gen Ruby -> C stub with types v@ resolving -[NoMethodError length] resolving -[NoMethodError length] rb_vm_pop_exception (vm.cpp:3976): Calling pop_current_exception(1)... RoxorVM::pop_current_exception (vm.cpp:3618) - Warning: Assertion about to fail: ((size_t)pos < current_exceptions.size()); pos = 1; current_exceptions.size() = 1 current_exceptions[0] = (0x20025fd40) "#<NoMethodError: undefined method `[]' for nil:NilClass>" Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3622. Abort trap }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1446#comment:4> MacRuby <http://macruby.org/>