Rake/RSpec shouldn't throw NullPointerException in JITted code
--------------------------------------------------------------
Key: JRUBY-5585
URL: http://jira.codehaus.org/browse/JRUBY-5585
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6RC3
Environment: jruby 1.6.0.RC3 (ruby 1.8.7 patchlevel 330) (2011-03-13
a8e5382) (Java HotSpot(TM) Client VM 1.6.0_22) [darwin-i386-java]
built and managed by RVM
Reporter: Rob Hunter
Assignee: Thomas E Enebo
I'm trying JRuby 1.6 and it's throwing a NullPointerException when I run my
specs -- but only under Rake.
OK JRuby 1.6 spec+bundler+rails
FAIL JRuby 1.6 rake+bundler+spec+rails
OK JRuby 1.5 rake+bundler+spec+rails
(apologies for the long stack trace, but I couldn't find a small reproducing
case)
$ rake spec
.............
java.lang.NullPointerException
at
rubyjit.execute_78281F6B651828CF55A465052DFED95103123CA9.chained_2_rescue_line_42(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:44)
at
rubyjit.execute_78281F6B651828CF55A465052DFED95103123CA9.chained_0_rescue_1$RUBY$SYNTHETIC__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:40)
at
rubyjit.execute_78281F6B651828CF55A465052DFED95103123CA9.block_0$RUBY$__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:38)
at
rubyjit$execute_78281F6B651828CF55A465052DFED95103123CA9#block_0$RUBY$__file__.call(rubyjit$execute_78281F6B651828CF55A465052DFED95103123CA9#block_0$RUBY$__file__:65535)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:112)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:95)
at org.jruby.runtime.CompiledBlock.yieldSpecific(CompiledBlock.java:75)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at org.jruby.ext.Timeout.timeout(Timeout.java:78)
at org.jruby.ext.Timeout$s$timeout.call(Timeout$s$timeout.gen:65535)
at
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:146)
at
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:157)
at
rubyjit.execute_78281F6B651828CF55A465052DFED95103123CA9.__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:37)
at
rubyjit.execute_78281F6B651828CF55A465052DFED95103123CA9.__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb)
at
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:207)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
at
rubyjit.run_examples_F0FB904973C854AC66896BA089993CE85F267880.block_0$RUBY$__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:214)
at
rubyjit$run_examples_F0FB904973C854AC66896BA089993CE85F267880#block_0$RUBY$__file__.call(rubyjit$run_examples_F0FB904973C854AC66896BA089993CE85F267880#block_0$RUBY$__file__:65535)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:112)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:95)
at org.jruby.runtime.Block.yield(Block.java:130)
at org.jruby.RubyArray.eachCommon(RubyArray.java:1565)
at org.jruby.RubyArray.each(RubyArray.java:1572)
at org.jruby.RubyArray$i$0$0$each.call(RubyArray$i$0$0$each.gen:65535)
at
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:112)
at
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
at
rubyjit.run_examples_F0FB904973C854AC66896BA089993CE85F267880.__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:212)
at
rubyjit.run_examples_F0FB904973C854AC66896BA089993CE85F267880.__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb)
at
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:107)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:252)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:71)
at
rubyjit.run_0C18271FE7D5E1A83B4340B97DFF3794AB8BCCB9.__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:103)
at
rubyjit.run_0C18271FE7D5E1A83B4340B97DFF3794AB8BCCB9.__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb)
at
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
at
org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
at
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:347)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:304)
at org.jruby.runtime.Block.yield(Block.java:130)
at org.jruby.RubyArray.eachCommon(RubyArray.java:1565)
at org.jruby.RubyArray.each(RubyArray.java:1572)
at org.jruby.RubyArray$i$0$0$each.call(RubyArray$i$0$0$each.gen:65535)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:272)
at
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:114)
at
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
at
org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:262)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:105)
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:62)
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.IfNode.interpret(IfNode.java:119)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)
at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:262)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:105)
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:62)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)
at
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:262)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:105)
at
Users.rhunter.Projects.playup.puge.vendor.bundle.jruby.$1_dot_8.gems.rspec_minus_1_dot_3_dot_0.bin.spec.__file__(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/bin/spec:5)
at
Users.rhunter.Projects.playup.puge.vendor.bundle.jruby.$1_dot_8.gems.rspec_minus_1_dot_3_dot_0.bin.spec.load(/Users/rhunter/Projects/playup/puge/vendor/bundle/jruby/1.8/gems/rspec-1.3.0/bin/spec)
at org.jruby.Ruby.runScript(Ruby.java:670)
at org.jruby.Ruby.runNormally(Ruby.java:574)
at org.jruby.Ruby.runFromMain(Ruby.java:423)
at org.jruby.Main.doRunFromMain(Main.java:278)
at org.jruby.Main.internalRun(Main.java:198)
at.... org.jruby.Main.run(Main.java:164)
at org.jruby.Main.run(Main.java:148)
at
org.jruby.util.ShellLauncher$ScriptThreadProcess.run(ShellLauncher.java:139)
at java.lang.Thread.run(Thread.java:680)
rake aborted!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email