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

[jruby 1.7.21] ManyVarsDynamicScope.java:71:in `getValue': java.lang.ArrayIndexOutOfBoundsException #3259

Closed
atambo opened this issue Aug 17, 2015 · 6 comments

Comments

@atambo
Copy link
Member

atambo commented Aug 17, 2015

We are seeing this error show up every once and a while when running our tests on our CI system:

ManyVarsDynamicScope.java:71:in `getValue': java.lang.ArrayIndexOutOfBoundsException
15:25:06    from DVarNode.java:118:in `interpret'
15:25:06    from CallOneArgNode.java:57:in `interpret'
15:25:06    from IfNode.java:110:in `interpret'
15:25:06    from NewlineNode.java:105:in `interpret'
15:25:06    from BlockNode.java:71:in `interpret'
15:25:06    from ASTInterpreter.java:112:in `INTERPRET_BLOCK'
15:25:06    from Interpreted19Block.java:206:in `evalBlockBody'
15:25:06    from Interpreted19Block.java:194:in `yield'
15:25:06    from Interpreted19Block.java:125:in `call'
15:25:06    from Block.java:101:in `call'
15:25:06    from RubyProc.java:290:in `call'
15:25:06    from RubyProc.java:228:in `call'
15:25:06    from Ruby.java:3183:in `tearDown'
15:25:06    from Ruby.java:3167:in `tearDown'
15:25:06    from Main.java:294:in `internalRun'
15:25:06    from Main.java:217:in `run'
15:25:06    from Main.java:197:in `main'
@enebo
Copy link
Member

enebo commented Aug 17, 2015

@atambo wow this looks really familar....it would seem tearDown is running Ruby code and what it is depending on is gone perhaps. I do not remember why this was happening before...

@headius
Copy link
Member

headius commented Aug 18, 2015

@atambo It may be possible to get a better trace by specifying -X+C when you run; that should cause the code being executed above to get compiled at load.

@headius
Copy link
Member

headius commented Sep 4, 2015

@atambo Any more information on this?

@atambo
Copy link
Member Author

atambo commented Sep 4, 2015

I added -X+C to JRUBY_OPTS. I'll attach the new trace whenever it happens next.

@atambo
Copy link
Member Author

atambo commented Sep 15, 2015

Looks like I get the same trace even with the -X+C added to JRUBY_OPTS :-(

@kares kares added this to the JRuby 1.7.27 milestone Jan 18, 2017
@headius
Copy link
Member

headius commented Mar 15, 2017

This is very old and there have been various fixes to 1.7 since then. In addition, 1.7.27 will be the last of the 1.7 line and we strongly encourage all users to migrate to JRuby 9k. Closing.

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

No branches or pull requests

5 participants