Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Null Pointer exception while bundling #4465

Closed
hydrogen18 opened this issue Jan 30, 2017 · 6 comments
Closed

Java Null Pointer exception while bundling #4465

hydrogen18 opened this issue Jan 30, 2017 · 6 comments
Labels
Milestone

Comments

@hydrogen18
Copy link

Environment

Provide at least:

Java

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

JRUBY_OPTS

-J-XX:+UseCompressedOops -J-XX:-TieredCompilation -J-Xms1750m -J-Xmx3000m -J-XX:MaxMetaspaceSize=128m -J-XX:ReservedCodeCacheSize=128m -J-XX:InitialCodeCacheSize=64m -J-Djava.net.preferIPv4Stack=true -J-XX:+UseConcMarkSweepGC -J-XX:+CMSParallelRemarkEnabled -J-XX:+CMSClassUnloadingEnabled -J-XX:+UseParNewGC -J-XX:+CMSConcurrentMTEnabled -J-XX:ConcGCThreads=4 -Xjit.max=65535 -J-XX:NewSize=768m -J-XX:MaxNewSize=768m -J-XX:-UseAdaptiveSizePolicy -J-XX:SurvivorRatio=5 -J-Xmaxjitcodesize128m

OS details from uname

Linux ericu-destroyer-of-worlds 3.13.0-95-generic #142-Ubuntu SMP Fri Aug 12 17:00:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I built JRuby from master. Using RVM I installed 9.1.7.0, but replaced the JAR with the 9.1.8.0-SNAPSHOT jar I got from my build.

[ericu-destroyer-of-worlds] community$ ruby --version
jruby 9.1.8.0-SNAPSHOT (2.3.1) 2017-01-30 9f0c841 Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +jit [linux-x86_64]

Expected behavior is Ruby code runs. Actual behavior when running bundler is this:

[ericu-destroyer-of-worlds] community$ bundle exec ruby -Itest test/models/user_test.rb 

[!] There was an error while loading `trinidad_server_config_extension.gemspec`: . Bundler cannot continue.

I hacked bundler to log everything it could then did it again

[ericu-destroyer-of-worlds] community$ bundle exec ruby -Itest test/models/user_test.rb 

[!] There was an error while loading `trinidad_server_config_extension.gemspec`: Java::JavaLang::NullPointerException 
org.jruby.ir.IRScope.cloneInstrs(IRScope.java:544)
org.jruby.ir.IRScope.prepareFullBuildCommon(IRScope.java:561)
org.jruby.ir.IRScope.prepareForCompilation(IRScope.java:620)
org.jruby.runtime.MixedModeIRBlockBody.promoteToFullBuild(MixedModeIRBlockBody.java:169)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:126)
org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:182)
org.jruby.runtime.BlockBody.yield(BlockBody.java:111)
org.jruby.runtime.Block.yield(Block.java:167)
org.jruby.ir.runtime.IRRuntimeHelpers.yield(IRRuntimeHelpers.java:446)
org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:83)
org.jruby.ir.interpreter.StartupInterpreterEngine.processOtherOp(StartupInterpreterEngine.java:187)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:111)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.RubyClass.newInstance(RubyClass.java:1022)
org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.Interpreter.INTERPRET_EVAL(Interpreter.java:122)
org.jruby.ir.interpreter.Interpreter.evalCommon(Interpreter.java:176)
org.jruby.ir.interpreter.Interpreter.evalWithBinding(Interpreter.java:200)
org.jruby.RubyKernel.evalCommon(RubyKernel.java:1033)
org.jruby.RubyKernel.eval19(RubyKernel.java:1000)
org.jruby.RubyKernel$INVOKER$s$0$3$eval19.call(RubyKernel$INVOKER$s$0$3$eval19.gen)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:89)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:214)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:200)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:358)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:323)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:132)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:148)
org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:182)
org.jruby.runtime.BlockBody.yield(BlockBody.java:111)
org.jruby.runtime.Block.yield(Block.java:167)
org.jruby.RubyDir.chdir(RubyDir.java:323)
org.jruby.RubyDir$INVOKER$s$0$1$chdir.call(RubyDir$INVOKER$s$0$1$chdir.gen)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:204)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:348)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:173)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:177)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:332)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:132)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:148)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:80)
org.jruby.runtime.Block.yieldSpecific(Block.java:136)
org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:450)
org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:74)
org.jruby.ir.interpreter.StartupInterpreterEngine.processOtherOp(StartupInterpreterEngine.java:187)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:111)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:101)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:348)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:173)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:177)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:332)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:89)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:214)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:200)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:358)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:323)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:132)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:148)
org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:182)
org.jruby.runtime.BlockBody.yield(BlockBody.java:111)
org.jruby.runtime.Block.yield(Block.java:167)
org.jruby.RubyArray.each(RubyArray.java:1733)
org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:497)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:132)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:148)
org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:182)
org.jruby.runtime.BlockBody.yield(BlockBody.java:111)
org.jruby.runtime.Block.yield(Block.java:167)
org.jruby.RubyArray.any_p(RubyArray.java:4294)
org.jruby.RubyArray$INVOKER$i$0$0$any_p.call(RubyArray$INVOKER$i$0$0$any_p.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:497)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.RubyClass.newInstance(RubyClass.java:1022)
org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:89)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:214)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:200)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:358)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:323)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:112)
org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:99)
org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:35)
org.jruby.ir.IRTranslator.execute(IRTranslator.java:42)
org.jruby.Ruby.runInterpreter(Ruby.java:835)
org.jruby.Ruby.loadFile(Ruby.java:2872)
org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:243)
org.jruby.runtime.load.LibrarySearcher$Fo
Other relevant info you may wish to add:
* Installed or activated gems
* Application/framework version (e.g. Rails, Sinatra)
* Environment variables

### Expected Behavior

* Describe your expectation of how JRuby should behave, perhaps by showing how CRuby/MRI behaves.
* Provide an executable Ruby script or a link to an example repository.

### Actual Behavior

* Describe or show the actual behavior.
* Provide text or screen capture showing the behavior.undLibrary.load(LibrarySearcher.java:34)
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:887)
org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:527)
org.jruby.runtime.load.LoadService.require(LoadService.java:398)
org.jruby.RubyKernel.requireCommon(RubyKernel.java:968)
org.jruby.RubyKernel.require19(RubyKernel.java:961)
org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:383)
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
org.jruby.RubyClass.finvoke(RubyClass.java:908)
org.jruby.runtime.Helpers.invoke(Helpers.java:400)
org.jruby.RubyBasicObject.callMethod(RubyBasicObject.java:363)
org.jruby.Ruby.init(Ruby.java:1248)
org.jruby.Ruby.newInstance(Ruby.java:334)
org.jruby.Main.internalRun(Main.java:271)
org.jruby.Main.run(Main.java:232)
org.jruby.Main.main(Main.java:204). Bundler cannot continue.

I am running the latest bundler

[ericu-destroyer-of-worlds] community$ bundler --version
Bundler version 1.14.3

This is happening in bundler's eval_gemspec function.

@hydrogen18
Copy link
Author

@headius Here is the problem I had on master. If there are additional artifacts you need from the build let me know.

@headius
Copy link
Member

headius commented Jan 30, 2017

Thank you! We see the problem but we're not sure of the root cause. As far as we can tell "it shouldn't happen", but obviously it is happening.

A few things you could do to help:

  • Try to reproduce this with -Xjit.threshold=0. This will force more Ruby methods to JIT, which will let them show up in the Java backtrace.
  • Try to bisect from 9.1.7.0 tag to HEAD. If you can find what commit it is, we'll turn around a fix the same day.

Thanks for your help and patience!

@headius
Copy link
Member

headius commented Jan 30, 2017

You could also add a try/catch for the NPE at that point in JRuby's Java code and print out the IRScope "this". That would let us know where the compiler is blowing up in Ruby code, which would help us find the root problem.

@headius
Copy link
Member

headius commented Jan 30, 2017

Hold the phone! We think @enebo has managed to reproduce locally in a different way.

@hydrogen18
Copy link
Author

Same thing, with the JIT settings

[ericu-destroyer-of-worlds] community$ truncate --size=0 log/test.log && bundle exec ruby -Itest test/models/user_test.rb 

[!] There was an error while loading `trinidad_server_config_extension.gemspec`: Java::JavaLang::NullPointerException 
org.jruby.ir.IRScope.cloneInstrs(IRScope.java:544)
org.jruby.ir.IRScope.prepareFullBuildCommon(IRScope.java:561)
org.jruby.ir.IRScope.prepareForCompilation(IRScope.java:620)
org.jruby.runtime.MixedModeIRBlockBody.promoteToFullBuild(MixedModeIRBlockBody.java:169)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:126)
org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:182)
org.jruby.runtime.BlockBody.yield(BlockBody.java:111)
org.jruby.runtime.Block.yield(Block.java:167)
org.jruby.ir.runtime.IRRuntimeHelpers.yield(IRRuntimeHelpers.java:446)
org.jruby.ir.targets.YieldSite.yield(YieldSite.java:87)
home.ericu.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_7_dot_0.lib.ruby.stdlib.rubygems.specification.RUBY$method$initialize$0(/home/ericu/.rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/specification.rb:2053)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.RubyClass.newInstance(RubyClass.java:1022)
org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.Interpreter.INTERPRET_EVAL(Interpreter.java:122)
org.jruby.ir.interpreter.Interpreter.evalCommon(Interpreter.java:176)
org.jruby.ir.interpreter.Interpreter.evalWithBinding(Interpreter.java:200)
org.jruby.RubyKernel.evalCommon(RubyKernel.java:1033)
org.jruby.RubyKernel.eval19(RubyKernel.java:1000)
org.jruby.RubyKernel$INVOKER$s$0$3$eval19.call(RubyKernel$INVOKER$s$0$3$eval19.gen)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:220)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:216)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:378)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:227)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.invokeOther2:eval(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:471)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.RUBY$method$eval_gemspec$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:471)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:116)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:198)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:358)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.invokeOther7:eval_gemspec(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:419)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.RUBY$block$load_gemspec_uncached$1(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:419)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:156)
org.jruby.runtime.BlockBody.yield(BlockBody.java:109)
org.jruby.runtime.Block.yield(Block.java:167)
org.jruby.RubyDir.chdir(RubyDir.java:323)
org.jruby.RubyDir$INVOKER$s$0$1$chdir.call(RubyDir$INVOKER$s$0$1$chdir.gen)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:204)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:348)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:173)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:177)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.shared_helpers.invokeOther0:chdir(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/shared_helpers.rb:55)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.shared_helpers.RUBY$block$chdir$1(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/shared_helpers.rb:55)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:156)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:76)
org.jruby.runtime.Block.yieldSpecific(Block.java:136)
org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:450)
org.jruby.ir.targets.YieldSite.yieldSpecific(YieldSite.java:114)
home.ericu.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_7_dot_0.lib.ruby.stdlib.monitor.RUBY$method$mon_synchronize$0(/home/ericu/.rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/monitor.rb:214)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:90)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:128)
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:81)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:328)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:141)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:145)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.shared_helpers.invokeOther4:synchronize(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/shared_helpers.rb:54)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.shared_helpers.RUBY$method$chdir$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/shared_helpers.rb:54)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:348)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:173)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:177)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.invokeOther17:chdir(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:414)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.RUBY$method$load_gemspec_uncached$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:414)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:113)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:198)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:358)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.invokeOther6:load_gemspec_uncached(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:404)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.RUBY$method$load_gemspec$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:404)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:100)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.source.path.invokeOther3:load_gemspec(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/source/path.rb:151)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.source.path.RUBY$block$load_spec_files$2(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/source/path.rb:151)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:156)
org.jruby.runtime.BlockBody.yield(BlockBody.java:109)
org.jruby.runtime.Block.yield(Block.java:167)
org.jruby.RubyArray.each(RubyArray.java:1733)
org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:328)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:141)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:145)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.source.path.invokeOther52:each(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/source/path.rb:150)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.source.path.RUBY$method$load_spec_files$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/source/path.rb:150)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:90)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:128)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.source.path.invokeOther2:load_spec_files(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/source/path.rb:95)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.source.path.RUBY$method$local_specs$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/source/path.rb:95)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:87)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:128)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.source.path.invokeOther4:local_specs(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/source/path.rb:103)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.source.path.RUBY$method$specs$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/source/path.rb:103)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:90)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:128)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.invokeOther6:specs(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:595)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.RUBY$method$specs_for_source_changed?$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:595)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.invokeOther6:specs_for_source_changed?(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:581)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.RUBY$method$specs_changed?$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:581)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.invokeOther0:specs_changed?(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:621)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.RUBY$block$converge_paths$1(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:621)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:156)
org.jruby.runtime.BlockBody.yield(BlockBody.java:109)
org.jruby.runtime.Block.yield(Block.java:167)
org.jruby.RubyArray.any_p(RubyArray.java:4294)
org.jruby.RubyArray$INVOKER$i$0$0$any_p.call(RubyArray$INVOKER$i$0$0$any_p.gen)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:328)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:141)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:145)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.invokeOther4:any?(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:620)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.RUBY$method$converge_paths$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:620)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:90)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:128)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.invokeOther91:converge_paths(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:108)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.RUBY$method$initialize$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:108)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
org.jruby.RubyClass.newInstance(RubyClass.java:1022)
org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:174)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:308)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:69)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.dsl.invokeOther4:new(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/dsl.rb:200)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.dsl.RUBY$method$to_definition$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/dsl.rb:200)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:116)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:198)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:358)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.dsl.invokeOther2:to_definition(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/dsl.rb:12)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.dsl.RUBY$method$evaluate$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/dsl.rb:12)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:129)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:233)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:216)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:378)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:227)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.invokeOther6:evaluate(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:33)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.definition.RUBY$method$build$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler/definition.rb:33)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:129)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:233)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:216)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:378)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:227)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.invokeOther6:build(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:128)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.RUBY$method$definition$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:128)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:87)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:128)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.invokeOther3:definition(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:94)
home.ericu.$_dot_rvm.gems.jruby_minus_9_dot_1_dot_7_dot_0_at_40_community.gems.bundler_minus_1_dot_14_dot_3.lib.bundler.RUBY$method$setup$0(/home/ericu/.rvm/gems/jruby-9.1.7.0@community/gems/bundler-1.14.3/lib/bundler.rb:94)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:87)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:128)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:112)
org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:99)
org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:35)
org.jruby.ir.IRTranslator.execute(IRTranslator.java:42)
org.jruby.Ruby.runInterpreter(Ruby.java:835)
org.jruby.Ruby.loadFile(Ruby.java:2872)
org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:243)
org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34)
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:887)
org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:527)
org.jruby.runtime.load.LoadService.require(LoadService.java:398)
org.jruby.RubyKernel.requireCommon(RubyKernel.java:968)
org.jruby.RubyKernel.require19(RubyKernel.java:961)
org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:383)
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
home.ericu.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_7_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.invokeOther24:gem_original_require(/home/ericu/.rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
home.ericu.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_7_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.RUBY$method$require$0(/home/ericu/.rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
org.jruby.RubyClass.finvoke(RubyClass.java:908)
org.jruby.runtime.Helpers.invoke(Helpers.java:400)
org.jruby.RubyBasicObject.callMethod(RubyBasicObject.java:363)
org.jruby.Ruby.init(Ruby.java:1248)
org.jruby.Ruby.newInstance(Ruby.java:334)
org.jruby.Main.internalRun(Main.java:271)
org.jruby.Main.run(Main.java:232)
org.jruby.Main.main(Main.java:204). Bundler cannot continue.

@enebo enebo added this to the JRuby 9.1.8.0 milestone Feb 10, 2017
@enebo enebo added the ir label Feb 10, 2017
@enebo enebo closed this as completed in 675adb2 Feb 10, 2017
@enebo
Copy link
Member

enebo commented Feb 10, 2017

@hydrogen18 can you make this is working now? I believe I nailed it (I also had the NPE running bundle exec) but it hits some bootstrapping code internally where we have never completely grokked why we needed it. I am guessing some evals are rootless and it needs this empty root above it but too much info :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants