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

ManyVarsDynamicScope.java:145:in `setValueDepthZero': java.lang.ArrayIndexOutOfBoundsException: 0 #3089

Closed
kwando opened this Issue Jun 29, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@kwando
Copy link

kwando commented Jun 29, 2015

Not sure if this is a pry or ruby bug. ArrayIndexOutOfBoundsException is something blowing up inside jruby, but this might be caused by some pry magic.

pry -e '"hello world"'

ManyVarsDynamicScope.java:145:in `setValueDepthZero': java.lang.ArrayIndexOutOfBoundsException: 0
    from ManyVarsDynamicScope.java:138:in `setValue'
    from RubyBinding.java:169:in `local_variable_set'
    from RubyBinding$INVOKER$i$2$0$local_variable_set.gen:-1:in `call'
    from JavaMethod.java:1054:in `call'
    from JavaMethod.java:692:in `call'
    from CachingCallSite.java:273:in `cacheAndCall'
    from CachingCallSite.java:79:in `callBlock'
    from CachingCallSite.java:83:in `call'
    from CallBase.java:419:in `interpret'
    from InterpreterEngine.java:324:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from MixedModeIRMethod.java:129:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:115:in `call'
    from CachingCallSite.java:273:in `cacheAndCall'
    from CachingCallSite.java:79:in `callBlock'
    from CachingCallSite.java:83:in `call'
    from CallBase.java:419:in `interpret'
    from InterpreterEngine.java:324:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from Interpreter.java:137:in `INTERPRET_BLOCK'
    from InterpretedIRBlockBody.java:116:in `commonYieldPath'
    from IRBlockBody.java:139:in `doYield'
    from BlockBody.java:77:in `yield'
    from Block.java:147:in `yield'
    from RubyHash.java:1356:in `visit'
    from RubyHash.java:656:in `visitLimited'
    from RubyHash.java:642:in `visitAll'
    from RubyHash.java:1305:in `iteratorVisitAll'
    from RubyHash.java:1351:in `each_pairCommon'
    from RubyHash.java:1342:in `each19'
    from RubyHash$INVOKER$i$0$0$each19.gen:-1:in `call'
    from JavaMethod.java:473:in `call'
    from CachingCallSite.java:273:in `cacheAndCall'
    from CachingCallSite.java:79:in `callBlock'
    from CachingCallSite.java:83:in `call'
    from CallBase.java:419:in `interpret'
    from InterpreterEngine.java:324:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from InterpreterEngine.java:78:in `interpret'
    from MixedModeIRMethod.java:164:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:150:in `call'
    from DynamicMethod.java:197:in `call'
    from CachingCallSite.java:293:in `cacheAndCall'
    from CachingCallSite.java:131:in `call'
    from InterpreterEngine.java:308:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from MixedModeIRMethod.java:129:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:115:in `call'
    from CachingCallSite.java:273:in `cacheAndCall'
    from CachingCallSite.java:79:in `callBlock'
    from CachingCallSite.java:83:in `call'
    from CallBase.java:419:in `interpret'
    from InterpreterEngine.java:324:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from Interpreter.java:137:in `INTERPRET_BLOCK'
    from InterpretedIRBlockBody.java:116:in `commonYieldPath'
    from IRBlockBody.java:139:in `doYield'
    from BlockBody.java:77:in `yield'
    from Block.java:147:in `yield'
    from RubyContinuation.java:107:in `enter'
    from RubyKernel.java:1106:in `rbCatch19Common'
    from RubyKernel.java:1099:in `rbCatch19'
    from RubyKernel$INVOKER$s$rbCatch19.gen:-1:in `call'
    from CachingCallSite.java:323:in `cacheAndCall'
    from CachingCallSite.java:173:in `callBlock'
    from CachingCallSite.java:177:in `call'
    from InterpreterEngine.java:301:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from Interpreter.java:137:in `INTERPRET_BLOCK'
    from InterpretedIRBlockBody.java:116:in `commonYieldPath'
    from IRBlockBody.java:139:in `doYield'
    from BlockBody.java:77:in `yield'
    from Block.java:147:in `yield'
    from RubyContinuation.java:107:in `enter'
    from RubyKernel.java:1106:in `rbCatch19Common'
    from RubyKernel.java:1099:in `rbCatch19'
    from RubyKernel$INVOKER$s$rbCatch19.gen:-1:in `call'
    from CachingCallSite.java:323:in `cacheAndCall'
    from CachingCallSite.java:173:in `callBlock'
    from CachingCallSite.java:177:in `call'
    from InterpreterEngine.java:301:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from InterpreterEngine.java:84:in `interpret'
    from MixedModeIRMethod.java:199:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:185:in `call'
    from DynamicMethod.java:205:in `call'
    from CachingCallSite.java:313:in `cacheAndCall'
    from CachingCallSite.java:163:in `call'
    from InterpreterEngine.java:292:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from Interpreter.java:137:in `INTERPRET_BLOCK'
    from InterpretedIRBlockBody.java:116:in `commonYieldPath'
    from IRBlockBody.java:66:in `yieldSpecific'
    from Block.java:116:in `yieldSpecific'
    from RubyKernel.java:1292:in `loop'
    from RubyKernel$INVOKER$s$0$0$loop.gen:-1:in `call'
    from JavaMethod.java:473:in `call'
    from CachingCallSite.java:273:in `cacheAndCall'
    from CachingCallSite.java:79:in `callBlock'
    from CachingCallSite.java:83:in `call'
    from CallBase.java:419:in `interpret'
    from InterpreterEngine.java:324:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from InterpreterEngine.java:78:in `interpret'
    from MixedModeIRMethod.java:164:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:150:in `call'
    from DynamicMethod.java:197:in `call'
    from CachingCallSite.java:293:in `cacheAndCall'
    from CachingCallSite.java:131:in `call'
    from InterpreterEngine.java:308:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from Interpreter.java:137:in `INTERPRET_BLOCK'
    from InterpretedIRBlockBody.java:116:in `commonYieldPath'
    from IRBlockBody.java:58:in `call'
    from Block.java:106:in `call'
    from RubyProc.java:317:in `call'
    from RubyProc.java:301:in `call19'
    from RubyProc$INVOKER$i$0$0$call19.gen:-1:in `call'
    from DynamicMethod.java:201:in `call'
    from DynamicMethod.java:197:in `call'
    from CachingCallSite.java:293:in `cacheAndCall'
    from CachingCallSite.java:131:in `call'
    from InterpreterEngine.java:308:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from MixedModeIRMethod.java:129:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:115:in `call'
    from CachingCallSite.java:273:in `cacheAndCall'
    from CachingCallSite.java:79:in `callBlock'
    from CachingCallSite.java:83:in `call'
    from CallBase.java:419:in `interpret'
    from InterpreterEngine.java:324:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from MixedModeIRMethod.java:129:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:115:in `call'
    from CachingCallSite.java:273:in `cacheAndCall'
    from CachingCallSite.java:79:in `callBlock'
    from CachingCallSite.java:83:in `call'
    from CallBase.java:419:in `interpret'
    from InterpreterEngine.java:324:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from InterpreterEngine.java:78:in `interpret'
    from MixedModeIRMethod.java:164:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:150:in `call'
    from DynamicMethod.java:197:in `call'
    from CachingCallSite.java:293:in `cacheAndCall'
    from CachingCallSite.java:131:in `call'
    from InterpreterEngine.java:308:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from InterpreterEngine.java:84:in `interpret'
    from MixedModeIRMethod.java:199:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:185:in `call'
    from DynamicMethod.java:205:in `call'
    from CachingCallSite.java:313:in `cacheAndCall'
    from CachingCallSite.java:163:in `call'
    from InterpreterEngine.java:292:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from MixedModeIRMethod.java:129:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:115:in `call'
    from CachingCallSite.java:273:in `cacheAndCall'
    from CachingCallSite.java:79:in `callBlock'
    from CachingCallSite.java:83:in `call'
    from CallBase.java:419:in `interpret'
    from InterpreterEngine.java:324:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from Interpreter.java:137:in `INTERPRET_BLOCK'
    from InterpretedIRBlockBody.java:116:in `commonYieldPath'
    from IRBlockBody.java:58:in `call'
    from Block.java:106:in `call'
    from RubyProc.java:317:in `call'
    from RubyProc.java:301:in `call19'
    from RubyProc$INVOKER$i$0$0$call19.gen:-1:in `call'
    from DynamicMethod.java:209:in `call'
    from DynamicMethod.java:205:in `call'
    from CachingCallSite.java:313:in `cacheAndCall'
    from CachingCallSite.java:163:in `call'
    from InterpreterEngine.java:292:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from Interpreter.java:137:in `INTERPRET_BLOCK'
    from InterpretedIRBlockBody.java:116:in `commonYieldPath'
    from IRBlockBody.java:139:in `doYield'
    from BlockBody.java:77:in `yield'
    from Block.java:147:in `yield'
    from RubyArray.java:1571:in `each'
    from RubyArray$INVOKER$i$0$0$each.gen:-1:in `call'
    from JavaMethod.java:473:in `call'
    from CachingCallSite.java:273:in `cacheAndCall'
    from CachingCallSite.java:79:in `callBlock'
    from CachingCallSite.java:83:in `call'
    from CallBase.java:419:in `interpret'
    from InterpreterEngine.java:324:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from InterpreterEngine.java:78:in `interpret'
    from MixedModeIRMethod.java:164:in `INTERPRET_METHOD'
    from MixedModeIRMethod.java:150:in `call'
    from DynamicMethod.java:197:in `call'
    from CachingCallSite.java:293:in `cacheAndCall'
    from CachingCallSite.java:131:in `call'
    from InterpreterEngine.java:308:in `processCall'
    from StartupInterpreterEngine.java:78:in `interpret'
    from Interpreter.java:117:in `INTERPRET_ROOT'
    from Interpreter.java:104:in `execute'
    from Interpreter.java:33:in `execute'
    from IRTranslator.java:42:in `execute'
    from Ruby.java:861:in `runInterpreter'
    from Ruby.java:2934:in `loadFile'
    from LibrarySearcher.java:244:in `load'
    from LibrarySearcher.java:34:in `load'
    from LoadService.java:329:in `load'
    from RubyKernel.java:966:in `loadCommon'
    from RubyKernel.java:958:in `load19'
    from RubyKernel$INVOKER$s$0$1$load19.gen:-1:in `call'
    from DynamicMethod.java:209:in `call'
    from DynamicMethod.java:205:in `call'
    from CachingCallSite.java:313:in `cacheAndCall'
    from CachingCallSite.java:163:in `call'
    from /home/kwando/.rbenv/versions/jruby-9.0.0.0.rc1/bin/pry:-1:in `invokeOther19:load'
    from /home/kwando/.rbenv/versions/jruby-9.0.0.0.rc1/bin/pry:23:in `RUBY$script'
    from MethodHandle.java:599:in `invokeWithArguments'
    from Compiler.java:111:in `load'
    from Ruby.java:835:in `runScript'
    from Ruby.java:824:in `runScript'
    from Ruby.java:754:in `runNormally'
    from Ruby.java:575:in `runFromMain'
    from Main.java:401:in `doRunFromMain'
    from Main.java:296:in `internalRun'
    from Main.java:225:in `run'
    from Main.java:197:in `main'
$ ruby --version
jruby 9.0.0.0.rc1 (2.2.2) 2015-06-10 a0bf3b3 OpenJDK 64-Bit Server VM 24.79-b02 on 1.7.0_79-b14 +jit [linux-amd64]
$ pry --version
Pry version 0.10.1 on Ruby 2.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.