#797: MacRuby throws an exception after running rspec example ---------------------------+------------------------------------------------ Reporter: hax...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ---------------------------+------------------------------------------------ Description changed by martinlagarde...@…:
Old description: > installed rspec via macgem with latest MacRuby nightly. > > ran rspec on a script that contained: > > {{{ > describe "String" do > it "should be a String" do > "test".class.should == String > > end > end > }}} > > the rspec example passes, but then an exception is thrown: > > Finished in 0.32449 seconds > 1 example, 0 failures > uncaught Objective-C/C++ exception... > 2010-07-15 15:41:10.877 macruby[72183:903] *** Terminating app due to > uncaught exception 'NameError', reason: > '/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:228:in > `clear_ivars:': instance variable @example not defined (NameError) > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:196:in `block' > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:194:in > `run_examples:' > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:181:in `run:' > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:42:in > `run_examples:' > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:24:in `block' > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec- > core-2.0.0.beta.17/lib/rspec/core/formatters/base_formatter.rb:35:in > `block' > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec- > core-2.0.0.beta.17/lib/rspec/core/formatters/base_formatter.rb:155:in > `sync_output' > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec- > core-2.0.0.beta.17/lib/rspec/core/formatters/base_formatter.rb:34:in > `report:' > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:15:in `run:' > from > /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > /rspec-core-2.0.0.beta.17/lib/rspec/core/runner.rb:10:in `block' > ' > *** Call stack at first throw: > ( > 0 CoreFoundation 0x00007fff84e53cc4 > __exceptionPreprocess + 180 > 1 libobjc.A.dylib 0x00007fff8126e0f3 > objc_exception_throw + 45 > 2 libmacruby.dylib 0x0000000100153195 > rb_vm_raise + 437 > 3 libmacruby.dylib 0x000000010003ff19 > rb_exc_raise + 9 > 4 libmacruby.dylib 0x000000010003c8e4 > rb_name_error + 260 > 5 libmacruby.dylib 0x00000001000e65e4 > rb_obj_remove_instance_variable + 340 > 6 libmacruby.dylib 0x0000000100140abb > rb_vm_dispatch + 6603 > 7 libmacruby.dylib 0x00000001000ffb40 > rb_each + 960 > 8 libmacruby.dylib 0x0000000100140b79 > rb_vm_dispatch + 6793 > 9 ??? 0x0000000102f00870 0x0 + > 4344252528 > 10 ??? 0x000000010877f797 0x0 + > 4437047191 > 11 libmacruby.dylib 0x0000000100143677 > rb_vm_yield_args + 1879 > 12 libmacruby.dylib 0x00000001000fd828 > rb_yield + 40 > 13 libmacruby.dylib 0x00000001000158bd > rary_reserve + 861 > 14 libmacruby.dylib 0x0000000100140ad6 > rb_vm_dispatch + 6630 > 15 ??? 0x0000000102f00870 0x0 + > 4344252528 > 16 ??? 0x000000010877f4f5 0x0 + > 4437046517 > 17 libmacruby.dylib 0x0000000100140abb > rb_vm_dispatch + 6603 > 18 ??? 0x0000000102f00870 0x0 + > 4344252528 > 19 ??? 0x0000000108776e66 0x0 + > 4437012070 > 20 libmacruby.dylib 0x0000000100143677 > rb_vm_yield_args + 1879 > 21 libmacruby.dylib 0x00000001000fd828 > rb_yield + 40 > 22 libmacruby.dylib 0x0000000100019670 > rb_ary_new + 5696 > 23 libmacruby.dylib 0x0000000100140ad6 > rb_vm_dispatch + 6630 > 24 ??? 0x0000000102f00870 0x0 + > 4344252528 > 25 ??? 0x0000000108776a73 0x0 + > 4437011059 > 26 libmacruby.dylib 0x0000000100140a95 > rb_vm_dispatch + 6565 > 27 ??? 0x0000000102f00870 0x0 + > 4344252528 > 28 ??? 0x0000000108774d3a 0x0 + > 4437003578 > 29 libmacruby.dylib 0x0000000100140abb > rb_vm_dispatch + 6603 > 30 ??? 0x0000000102f00870 0x0 + > 4344252528 > 31 ??? 0x0000000108774b34 0x0 + > 4437003060 > 32 libmacruby.dylib 0x0000000100143657 > rb_vm_yield_args + 1847 > 33 libmacruby.dylib 0x00000001000fd7b3 > rb_yield_values + 275 > 34 libmacruby.dylib 0x000000010003a548 > rb_Complex + 14328 > 35 libmacruby.dylib 0x0000000100143715 > rb_vm_yield_args + 2037 > 36 libmacruby.dylib 0x00000001000fd828 > rb_yield + 40 > 37 libmacruby.dylib 0x00000001000158bd > rary_reserve + 861 > 38 libmacruby.dylib 0x0000000100140ad6 > rb_vm_dispatch + 6630 > 39 libmacruby.dylib 0x00000001000fd3a3 > rb_objc_block_call + 195 > 40 libmacruby.dylib 0x000000010003866c > rb_Complex + 6428 > 41 libmacruby.dylib 0x0000000100140b79 > rb_vm_dispatch + 6793 > 42 ??? 0x0000000102f00870 0x0 + > 4344252528 > 43 ??? 0x0000000108774848 0x0 + > 4437002312 > 44 libmacruby.dylib 0x0000000100140abb > rb_vm_dispatch + 6603 > 45 ??? 0x0000000102f00870 0x0 + > 4344252528 > 46 ??? 0x0000000108772a7a 0x0 + > 4436994682 > 47 libmacruby.dylib 0x0000000100143677 > rb_vm_yield_args + 1879 > 48 ??? 0x0000000102f1a556 0x0 + > 4344358230 > 49 ??? 0x0000000108772f80 0x0 + > 4436995968 > 50 libmacruby.dylib 0x0000000100143693 > rb_vm_yield_args + 1907 > 51 ??? 0x0000000102f1a556 0x0 + > 4344358230 > 52 ??? 0x0000000108773259 0x0 + > 4436996697 > 53 libmacruby.dylib 0x0000000100140ad6 > rb_vm_dispatch + 6630 > 54 ??? 0x0000000102f00870 0x0 + > 4344252528 > 55 ??? 0x0000000108772cd6 0x0 + > 4436995286 > 56 libmacruby.dylib 0x0000000100140abb > rb_vm_dispatch + 6603 > 57 ??? 0x0000000102f00870 0x0 + > 4344252528 > 58 ??? 0x0000000102f748a8 0x0 + > 4344727720 > 59 libmacruby.dylib 0x0000000100140a95 > rb_vm_dispatch + 6565 > 60 ??? 0x0000000102f00870 0x0 + > 4344252528 > 61 ??? 0x0000000102f73ae2 0x0 + > 4344724194 > 62 libmacruby.dylib 0x0000000100140a6b > rb_vm_dispatch + 6523 > 63 ??? 0x0000000102f00870 0x0 + > 4344252528 > 64 ??? 0x0000000102f6f750 0x0 + > 4344706896 > 65 libmacruby.dylib 0x0000000100140a6b > rb_vm_dispatch + 6523 > 66 ??? 0x0000000102f00870 0x0 + > 4344252528 > 67 ??? 0x0000000102f6f498 0x0 + > 4344706200 > 68 libmacruby.dylib 0x0000000100142469 > rb_vm_block_eval + 1401 > 69 libmacruby.dylib 0x00000001001513fa > rb_rescue2 + 58 > 70 libmacruby.dylib 0x0000000100040760 > ruby_finalize + 96 > 71 libmacruby.dylib 0x00000001000a0630 > rb_exit + 16 > 72 macruby 0x0000000100000d2f main + > 159 > 73 macruby 0x0000000100000c88 start > + 52 > ) > terminate called after throwing an instance of 'NSException' > > Regards, > Kam New description: installed rspec via macgem with latest MacRuby nightly. ran rspec on a script that contained: {{{ #!ruby describe "String" do it "should be a String" do "test".class.should == String end end }}} the rspec example passes, but then an exception is thrown: {{{ Finished in 0.32449 seconds 1 example, 0 failures uncaught Objective-C/C++ exception... 2010-07-15 15:41:10.877 macruby[72183:903] *** Terminating app due to uncaught exception 'NameError', reason: '/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:228:in `clear_ivars:': instance variable @example not defined (NameError) from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:196:in `block' from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:194:in `run_examples:' from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:181:in `run:' from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:42:in `run_examples:' from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:24:in `block' from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec- core-2.0.0.beta.17/lib/rspec/core/formatters/base_formatter.rb:35:in `block' from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec- core-2.0.0.beta.17/lib/rspec/core/formatters/base_formatter.rb:155:in `sync_output' from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec- core-2.0.0.beta.17/lib/rspec/core/formatters/base_formatter.rb:34:in `report:' from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:15:in `run:' from /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems /rspec-core-2.0.0.beta.17/lib/rspec/core/runner.rb:10:in `block' ' *** Call stack at first throw: ( 0 CoreFoundation 0x00007fff84e53cc4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x00007fff8126e0f3 objc_exception_throw + 45 2 libmacruby.dylib 0x0000000100153195 rb_vm_raise + 437 3 libmacruby.dylib 0x000000010003ff19 rb_exc_raise + 9 4 libmacruby.dylib 0x000000010003c8e4 rb_name_error + 260 5 libmacruby.dylib 0x00000001000e65e4 rb_obj_remove_instance_variable + 340 6 libmacruby.dylib 0x0000000100140abb rb_vm_dispatch + 6603 7 libmacruby.dylib 0x00000001000ffb40 rb_each + 960 8 libmacruby.dylib 0x0000000100140b79 rb_vm_dispatch + 6793 9 ??? 0x0000000102f00870 0x0 + 4344252528 10 ??? 0x000000010877f797 0x0 + 4437047191 11 libmacruby.dylib 0x0000000100143677 rb_vm_yield_args + 1879 12 libmacruby.dylib 0x00000001000fd828 rb_yield + 40 13 libmacruby.dylib 0x00000001000158bd rary_reserve + 861 14 libmacruby.dylib 0x0000000100140ad6 rb_vm_dispatch + 6630 15 ??? 0x0000000102f00870 0x0 + 4344252528 16 ??? 0x000000010877f4f5 0x0 + 4437046517 17 libmacruby.dylib 0x0000000100140abb rb_vm_dispatch + 6603 18 ??? 0x0000000102f00870 0x0 + 4344252528 19 ??? 0x0000000108776e66 0x0 + 4437012070 20 libmacruby.dylib 0x0000000100143677 rb_vm_yield_args + 1879 21 libmacruby.dylib 0x00000001000fd828 rb_yield + 40 22 libmacruby.dylib 0x0000000100019670 rb_ary_new + 5696 23 libmacruby.dylib 0x0000000100140ad6 rb_vm_dispatch + 6630 24 ??? 0x0000000102f00870 0x0 + 4344252528 25 ??? 0x0000000108776a73 0x0 + 4437011059 26 libmacruby.dylib 0x0000000100140a95 rb_vm_dispatch + 6565 27 ??? 0x0000000102f00870 0x0 + 4344252528 28 ??? 0x0000000108774d3a 0x0 + 4437003578 29 libmacruby.dylib 0x0000000100140abb rb_vm_dispatch + 6603 30 ??? 0x0000000102f00870 0x0 + 4344252528 31 ??? 0x0000000108774b34 0x0 + 4437003060 32 libmacruby.dylib 0x0000000100143657 rb_vm_yield_args + 1847 33 libmacruby.dylib 0x00000001000fd7b3 rb_yield_values + 275 34 libmacruby.dylib 0x000000010003a548 rb_Complex + 14328 35 libmacruby.dylib 0x0000000100143715 rb_vm_yield_args + 2037 36 libmacruby.dylib 0x00000001000fd828 rb_yield + 40 37 libmacruby.dylib 0x00000001000158bd rary_reserve + 861 38 libmacruby.dylib 0x0000000100140ad6 rb_vm_dispatch + 6630 39 libmacruby.dylib 0x00000001000fd3a3 rb_objc_block_call + 195 40 libmacruby.dylib 0x000000010003866c rb_Complex + 6428 41 libmacruby.dylib 0x0000000100140b79 rb_vm_dispatch + 6793 42 ??? 0x0000000102f00870 0x0 + 4344252528 43 ??? 0x0000000108774848 0x0 + 4437002312 44 libmacruby.dylib 0x0000000100140abb rb_vm_dispatch + 6603 45 ??? 0x0000000102f00870 0x0 + 4344252528 46 ??? 0x0000000108772a7a 0x0 + 4436994682 47 libmacruby.dylib 0x0000000100143677 rb_vm_yield_args + 1879 48 ??? 0x0000000102f1a556 0x0 + 4344358230 49 ??? 0x0000000108772f80 0x0 + 4436995968 50 libmacruby.dylib 0x0000000100143693 rb_vm_yield_args + 1907 51 ??? 0x0000000102f1a556 0x0 + 4344358230 52 ??? 0x0000000108773259 0x0 + 4436996697 53 libmacruby.dylib 0x0000000100140ad6 rb_vm_dispatch + 6630 54 ??? 0x0000000102f00870 0x0 + 4344252528 55 ??? 0x0000000108772cd6 0x0 + 4436995286 56 libmacruby.dylib 0x0000000100140abb rb_vm_dispatch + 6603 57 ??? 0x0000000102f00870 0x0 + 4344252528 58 ??? 0x0000000102f748a8 0x0 + 4344727720 59 libmacruby.dylib 0x0000000100140a95 rb_vm_dispatch + 6565 60 ??? 0x0000000102f00870 0x0 + 4344252528 61 ??? 0x0000000102f73ae2 0x0 + 4344724194 62 libmacruby.dylib 0x0000000100140a6b rb_vm_dispatch + 6523 63 ??? 0x0000000102f00870 0x0 + 4344252528 64 ??? 0x0000000102f6f750 0x0 + 4344706896 65 libmacruby.dylib 0x0000000100140a6b rb_vm_dispatch + 6523 66 ??? 0x0000000102f00870 0x0 + 4344252528 67 ??? 0x0000000102f6f498 0x0 + 4344706200 68 libmacruby.dylib 0x0000000100142469 rb_vm_block_eval + 1401 69 libmacruby.dylib 0x00000001001513fa rb_rescue2 + 58 70 libmacruby.dylib 0x0000000100040760 ruby_finalize + 96 71 libmacruby.dylib 0x00000001000a0630 rb_exit + 16 72 macruby 0x0000000100000d2f main + 159 73 macruby 0x0000000100000c88 start + 52 ) terminate called after throwing an instance of 'NSException' }}} Regards, Kam -- -- Ticket URL: <http://www.macruby.org/trac/ticket/797#comment:1> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel