jruby icon indicating copy to clipboard operation
jruby copied to clipboard

Exception while installing ffi on jruby 9.3.13

Open hurricup opened this issue 1 year ago • 8 comments

Here is the partial output from the bundle install:

Installing ffi 1.17.0 (java)
0:  ffi (1.17.0) from /home/user/.rvm/gems/jruby-9.3.13.0/specifications/ffi-1.17.0-java.gemspec
2024-06-10T03:45:37.531+03:00 [main] INFO TraceType : Exception raised: Errno::ENOENT : No such file or directory - /mnt/agent/temp/buildTmp/unitTest_CucumberScenario_2hfLkLPKX53CiNGYzNKkPl5YHLZ/Gemfile.lock

--- ERROR REPORT TEMPLATE -------------------------------------------------------

Java::JavaLang::BootstrapMethodError: call site initialization exception
java.lang.invoke.CallSite.makeSite(CallSite.java:341)
java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:307)
java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:297)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.erb.RUBY$block$compile$0(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/erb.rb:596)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:151)
org.jruby.runtime.MixedModeIRBlockBody.yieldDirect(MixedModeIRBlockBody.java:111)
org.jruby.runtime.BlockBody.yield(BlockBody.java:106)
org.jruby.runtime.Block.yield(Block.java:188)
org.jruby.ir.runtime.IRRuntimeHelpers.yield(IRRuntimeHelpers.java:493)
org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:86)
org.jruby.ir.interpreter.StartupInterpreterEngine.processOtherOp(StartupInterpreterEngine.java:176)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:104)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:128)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:115)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:94)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:546)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:361)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:183)
org.jruby.RubyClass.newInstance(RubyClass.java:890)
org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:354)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:170)
org.jruby.runtime.BlockBody.yield(BlockBody.java:108)
org.jruby.runtime.Block.yield(Block.java:188)
org.jruby.RubyArray.each(RubyArray.java:1865)
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:560)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:94)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:546)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:361)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:66)
org.jruby.runtime.Block.call(Block.java:147)
org.jruby.RubyProc.call(RubyProc.java:285)
org.jruby.RubyProc$INVOKER$i$call.call(RubyProc$INVOKER$i$call.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:354)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:170)
org.jruby.runtime.BlockBody.yield(BlockBody.java:108)
org.jruby.runtime.Block.yield(Block.java:188)
org.jruby.RubyArray.each(RubyArray.java:1865)
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:560)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:94)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:546)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:361)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:80)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:164)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:142)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:345)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:80)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:164)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:142)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:345)
o
rg.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:92)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:238)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:225)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:226)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:325)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:80)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:164)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:142)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:345)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:80)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:164)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:142)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:345)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:92)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:238)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:225)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:226)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:325)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:66)
org.jruby.runtime.Block.call(Block.java:147)
org.jruby.RubyProc.call(RubyProc.java:290)
org.jruby.RubyProc$INVOKER$i$call.call(RubyProc$INVOKER$i$call.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrTwoOrNBlock.call(JavaMethod.java:376)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.bundler.worker.invokeOther1:call(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/bundler/worker.rb:62)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.bundler.worker.RUBY$method$apply_func$0(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/bundler/worker.rb:62)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:178)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:222)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:226)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.bundler.worker.invokeOther4:apply_func(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/bundler/worker.rb:57)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.bundler.worker.RUBY$block$process_queue$0(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/bundler/worker.rb:57)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:151)
org.jruby.runtime.MixedModeIRBlockBody.yieldDirect(MixedModeIRBlockBody.java:111)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:72)
org.jruby.runtime.Block.yieldSpecific(Block.java:157)
org.jruby.RubyKernel.loop(RubyKernel.java:1508)
org.jruby.RubyKernel$INVOKER$s$0$0$loop.call(RubyKernel$INVOKER$s$0$0$loop.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:560)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:94)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:546)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:361)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:66)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)
org.jruby.runtime.Block.call(Block.java:143)
org.jruby.RubyProc.call(RubyProc.java:309)
org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:107)
java.lang.Thread.run(Thread.java:750)
Java::JavaLang::ArrayIndexOutOfBoundsException:
java.lang.System.arraycopy(Native Method)
org.jruby.RubyString.prepareEmptyByteList(RubyString.java:751)
org.jruby.RubyString.getEmptyByteList(RubyString.java:743)
org.jruby.ir.targets.indy.Bootstrap.bytelist(Bootstrap.java:229)
org.jruby.ir.targets.indy.Bootstrap.fstring(Bootstrap.java:115)
java.lang.invoke.CallSite.makeSite(CallSite.java:310)
java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:307)
java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:297)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.erb.RUBY$block$compile$0(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/erb.rb:596)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:151)
org.jruby.runtime.MixedModeIRBlockBody.yieldDirect(MixedModeIRBlockBody.java:111)
org.jruby.runtime.BlockBody.yield(BlockBody.java:106)
org.jruby.runtime.Block.yield(Block.java:188)
org.jruby.ir.runtime.IRRuntimeHelpers.yield(IRRuntimeHelpers.java:493)
org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:86)
org.jruby.ir.interpreter.StartupInterpreterEngine.processOtherOp(StartupInterpreterEngine.java:176)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:104)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:128)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:115)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:94)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:546)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:361)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpre
t(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:183)
org.jruby.RubyClass.newInstance(RubyClass.java:890)
org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:354)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:170)
org.jruby.runtime.BlockBody.yield(BlockBody.java:108)
org.jruby.runtime.Block.yield(Block.java:188)
org.jruby.RubyArray.each(RubyArray.java:1865)
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:560)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:94)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:546)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:361)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:66)
org.jruby.runtime.Block.call(Block.java:147)
org.jruby.RubyProc.call(RubyProc.java:285)
org.jruby.RubyProc$INVOKER$i$call.call(RubyProc$INVOKER$i$call.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:354)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:170)
org.jruby.runtime.BlockBody.yield(BlockBody.java:108)
org.jruby.runtime.Block.yield(Block.java:188)
org.jruby.RubyArray.each(RubyArray.java:1865)
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:560)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:94)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:546)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:361)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:80)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:164)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:142)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:345)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:80)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:164)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:142)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:345)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:92)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:238)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:225)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:226)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:325)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:80)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:164)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:142)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:345)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:80)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:164)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:142)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngin
e.java:345)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:92)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:238)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:225)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:226)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:325)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:66)
org.jruby.runtime.Block.call(Block.java:147)
org.jruby.RubyProc.call(RubyProc.java:290)
org.jruby.RubyProc$INVOKER$i$call.call(RubyProc$INVOKER$i$call.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrTwoOrNBlock.call(JavaMethod.java:376)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.bundler.worker.invokeOther1:call(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/bundler/worker.rb:62)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.bundler.worker.RUBY$method$apply_func$0(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/bundler/worker.rb:62)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:178)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:222)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:226)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.bundler.worker.invokeOther4:apply_func(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/bundler/worker.rb:57)
home.user.$_dot_rvm.rubies.jruby_minus_9_dot_3_dot_13_dot_0.lib.ruby.stdlib.bundler.worker.RUBY$block$process_queue$0(/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/stdlib/bundler/worker.rb:57)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:151)
org.jruby.runtime.MixedModeIRBlockBody.yieldDirect(MixedModeIRBlockBody.java:111)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:72)
org.jruby.runtime.Block.yieldSpecific(Block.java:157)
org.jruby.RubyKernel.loop(RubyKernel.java:1508)
org.jruby.RubyKernel$INVOKER$s$0$0$loop.call(RubyKernel$INVOKER$s$0$0$loop.gen)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:560)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:94)
org.jruby.ir.instructions.CallBase.interpret(CallBase.java:546)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:361)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:86)
org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:201)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316)
org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)
org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)
org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:66)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)
org.jruby.runtime.Block.call(Block.java:143)
org.jruby.RubyProc.call(RubyProc.java:309)
org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:107)
java.lang.Thread.run(Thread.java:750)

Environment

Bundler             2.4.21
Platforms         ruby, universal-java-1.8
Ruby                2.6.8p0 (2023-11-02 revision 67951) [universal-java-1.8]
Full Path         /home/user/.rvm/rubies/jruby-9.3.13.0/bin/jruby
Config Dir        /home/user/.rvm/rubies/jruby-9.3.13.0/etc
RubyGems            3.4.21
Gem Home          /home/user/.rvm/gems/jruby-9.3.13.0
Gem Path          /home/user/.rvm/gems/jruby-9.3.13.0:/home/user/.rvm/rubies/jruby-9.3.13.0/lib/ruby/gems/shared
User Home         /home/user
User Path         /home/user/.gem/jruby/2.6.0
Bin Dir           /home/user/.rvm/gems/jruby-9.3.13.0/bin
OpenSSL
Compiled          JRuby-OpenSSL 0.14.2
Loaded            JRuby-OpenSSL 0.14.2
Cert File         /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
Cert Dir          /etc/ssl/certs
Tools
Git               2.34.1
RVM               1.29.12-next (master)
rbenv             not installed
chruby            not installed
rubygems-bundler  (1.4.5)
Gem.ruby            /home/user/.rvm/rubies/jruby-9.3.13.0/bin/jruby
bundle #!           /usr/bin/env jruby_executable_hooks

Bundler Build Metadata

Built At          2023-10-17
Git SHA           d10b46bd15
Released Version  true

Bundler settings

gemfile
Set via BUNDLE_GEMFILE: "/mnt/agent/temp/buildTmp/unitTest_CucumberScenario_2hfLkLPKX53CiNGYzNKkPl5YHLZ/Gemfile"
mirror.http://rubygems.org/
Set for the current user (/home/user/.bundle/config): "https://repo.labs.intellij.net/api/gems/api-rubygems"
mirror.https://rubygems.org/
Set for the current user (/home/user/.bundle/config): "https://repo.labs.intellij.net/api/gems/api-rubygems"

Gemfile

Gemfile

source 'http://rubygems.org'

gem 'cucumber'

Gemfile.lock

<No /mnt/agent/temp/buildTmp/unitTest_CucumberScenario_2hfLkLPKX53CiNGYzNKkPl5YHLZ/Gemfile.lock found>

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=call+site+initialization+exception&type=Issues

If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there.
2024-06-10T03:45:37.537+03:00 [main] INFO TraceType : Exception raised: SystemExit : exit

hurricup avatar Jun 10 '24 07:06 hurricup

The error seems to indicate that the Gemfile specified does not exist:

Errno::ENOENT : No such file or directory - /mnt/agent/temp/buildTmp/unitTest_CucumberScenario_2hfLkLPKX53CiNGYzNKkPl5YHLZ/Gemfile.lock

It looks like this is passed in the BUNDLER_GEMFILE env according to your output.

Trying your Gemfile locally does not seem to error (I had to change http to https to run it)

$ bundle
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies....
Using bundler 2.3.26
Using bigdecimal 3.1.8 (java)
Using cucumber-messages 22.0.0
Using diff-lcs 1.5.1
Using mini_mime 1.1.5
Using multi_test 1.1.0
Using cucumber-gherkin 27.0.0
Fetching builder 3.3.0
Fetching cucumber-tag-expressions 6.1.0
Fetching cucumber-cucumber-expressions 17.1.0
Fetching cucumber-ci-environment 10.0.1
Fetching cucumber-html-formatter 21.3.1
Fetching ffi 1.17.0 (java)
Installing cucumber-tag-expressions 6.1.0
Installing cucumber-ci-environment 10.0.1
Installing builder 3.3.0
Installing cucumber-cucumber-expressions 17.1.0
Installing ffi 1.17.0 (java)
Fetching cucumber-core 13.0.2
Installing cucumber-html-formatter 21.3.1
Installing cucumber-core 13.0.2
Fetching sys-uname 1.3.0
Installing sys-uname 1.3.0
Fetching cucumber 9.2.0
Installing cucumber 9.2.0
Bundle complete! 1 Gemfile dependency, 16 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

Seems like I'm missing some detail here?

headius avatar Jun 11 '24 18:06 headius

I see now you ran this on 9.3.13. It's possible that 9.3.x does not support installing FFI from the gem.

headius avatar Jun 11 '24 18:06 headius

Ok that's not the problem... we have supported installing the gem since 9.2.20.0: https://github.com/jruby/jruby/issues/6793

I'm not sure what might be causing issues in your environment... I also confirmed that the FFI gem installs fine on a build from jruby-9.3 branch:

[] jruby93 $ gem install ffi 
Fetching ffi-1.17.0-java.gem
Successfully installed ffi-1.17.0-java
Parsing documentation for ffi-1.17.0-java
Installing ri documentation for ffi-1.17.0-java
Done installing documentation for ffi after 2 seconds
1 gem installed

headius avatar Jun 11 '24 18:06 headius

This is happening randomly.Not all the time. So seems something is going wrong. Is there some additional diagnostics I could collect?

hurricup avatar Jun 12 '24 04:06 hurricup

Ok so there's two errors I see in the output you have provided.

The first is the ENOENT that indicates it could not find a Gemfile. It's possible this is caused by the second one.

The second is Java::JavaLang::BootstrapMethodError: call site initialization exception which would indicate a bug in the JRuby JIT compiler. Looking at the stack trace, it's related to yielding to a block.

I'm not sure if there are any JIT bugs in 9.3.13 that are unfixed. Obviously most effort for the past year+ has been on JRuby 9.4. I can look into the yield logic and see if there's any fixes that might need to be backported.

Is there a reason you cannot update to JRuby 9.4.x?

headius avatar Jun 12 '24 05:06 headius

Unfortunately it seems like the yield logic is identical on master (9.4) and jruby-9.3 branches. You might be able to force it to happen more frequently by setting JRUBY_OPTS environment variable to -X+C or -Xjit.threshold=0.

headius avatar Jun 12 '24 05:06 headius

This is from the rubymine integration tests. we are running last versions for 9.3 and 9.4. And tests instability for unclear reasons is pain :(

hurricup avatar Jun 12 '24 06:06 hurricup

Aha ok! I definitely want to help you find this. Are there any tests I could run to reproduce this? Or if you have any additional output or can provide the source of that file producing the binding error, it would help.

headius avatar Jun 12 '24 15:06 headius