ArrayIndexOutOfBoundsException running bundle update
----------------------------------------------------

                 Key: JRUBY-5806
                 URL: http://jira.codehaus.org/browse/JRUBY-5806
             Project: JRuby
          Issue Type: Bug
          Components: Application Error, Ruby 1.8.7
    Affects Versions: JRuby 1.6.1, JRuby 1.6
         Environment: Mac OS X Snow Leopard 10.6.7, java version "1.6.0_24"; 
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326); Java 
HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
            Reporter: François Beausoleil
         Attachments: reproduction.zip

Running bundle update on the attached Gemfile, Gemfile.lock and gemspec I get a 
crash deep in JRuby's internals. This is using Bundler 1.0.13 and jruby 1.6.1, 
under RVM 1.6.10. The problem is also reproducible using JRuby 1.6.0.

As a test, I created a fresh new gemset under RVM and had the same issues.

I attached the Gemfile, Gemfile.lock and gemspec.

The full backtrace:

$ bundle update
Fetching source index for http://rubygems.org/
Installing RedCloth (4.2.7) 
Installing activesupport (3.0.7) 
Installing counters (1.1.3) 
Installing diff-lcs (1.1.2) 
Installing fastercsv (1.5.4) 
Installing i18n (0.5.0) 
Installing jdbc-postgres (9.0.801) 
Installing json (1.5.1) 
Installing redis (2.2.0) 
System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException
        from DefaultResolver.java:111:in `makeTime'
        from DefaultResolver.java:277:in `create'
        from DefaultResolver.java:317:in `handleScalar'
        from DefaultResolver.java:435:in `orgHandler'
        from DefaultResolver.java:455:in `node_import'
        from DefaultResolver$s$1$0$node_import.gen:65535:in `call'
        from CachingCallSite.java:137:in `call'
        from RubyLoadHandler.java:40:in `handle'
        from Parser.java:300:in `addNode'
        from DefaultYAMLParser.java:676:in `yyparse'
        from Parser.java:290:in `yechtparse'
        from Parser.java:284:in `parse'
        from YParser.java:152:in `load'
        from YParser$s$0$1$load.gen:65535:in `call'
        from JavaMethod.java:630:in `call'
        from DynamicMethod.java:205:in `call'
        from CachingCallSite.java:137:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from LocalAsgnNode.java:123:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:190:in `call'
        from DefaultMethod.java:179:in `call'
        from CachingCallSite.java:137:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from LocalAsgnNode.java:123:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:190:in `call'
        from DefaultMethod.java:179:in `call'
        from CachingCallSite.java:137:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from RescueNode.java:216:in `executeBody'
        from RescueNode.java:120:in `interpretWithJavaExceptions'
        from RescueNode.java:110:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:190:in `call'
        from DefaultMethod.java:179:in `call'
        from CachingCallSite.java:137:in `call'
        from FCallOneArgNode.java:36:in `interpret'
        from InstAsgnNode.java:95:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from EnsureNode.java:96:in `interpret'
        from BeginNode.java:83:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from WhenOneArgNode.java:36:in `whenSlowTest'
        from WhenOneArgNode.java:46:in `when'
        from CaseNode.java:133:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from ASTInterpreter.java:111:in `INTERPRET_BLOCK'
        from InterpretedBlock.java:374:in `evalBlockBody'
        from InterpretedBlock.java:347:in `yield'
        from InterpretedBlock.java:304:in `yield'
        from Block.java:130:in `yield'
        from 
/Users/francois/.rvm/rubies/jruby-1.6.1/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:64:in
 `block_0$RUBY$__file__'
        from 
rubyjit$each_906C1AEF3580CBC7DBAB9E01E65E61E28B63EFE5$block_0$RUBY$__file__:65535:in
 `call'
        from CompiledBlock.java:112:in `yield'
        from CompiledBlock.java:95:in `yield'
        from CompiledBlock.java:75:in `yieldSpecific'
        from Block.java:99:in `yieldSpecific'
        from RubyKernel.java:1418:in `loop'
        from RubyKernel$s$0$0$loop.gen:65535:in `call'
        from CachingCallSite.java:112:in `callBlock'
        from CachingCallSite.java:123:in `callIter'
        from 
/Users/francois/.rvm/rubies/jruby-1.6.1/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:55:in
 `__file__'
        from 
/Users/francois/.rvm/rubies/jruby-1.6.1/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:-1:in
 `__file__'
        from JittedMethod.java:147:in `call'
        from CachingCallSite.java:112:in `callBlock'
        from CachingCallSite.java:123:in `callIter'
        from CallNoArgBlockNode.java:64:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:255:in `call'
        from DefaultMethod.java:203:in `call'
        from CachingCallSite.java:180:in `callBlock'
        from CachingCallSite.java:186:in `call'
        from RubyClass.java:806:in `newInstance'
        from RubyClass$i$newInstance.gen:65535:in `call'
        from JavaMethod.java:283:in `call'
        from WrapperMethod.java:62:in `call'
        from CachingCallSite.java:171:in `call'
        from FCallTwoArgNode.java:38:in `interpret'
        from LocalAsgnNode.java:123:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from EnsureNode.java:96:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:255:in `call'
        from DefaultMethod.java:203:in `call'
        from CachingCallSite.java:180:in `callBlock'
        from CachingCallSite.java:186:in `call'
        from CallTwoArgBlockPassNode.java:62:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:298:in `call'
        from DefaultMethod.java:219:in `call'
        from CachingCallSite.java:214:in `callBlock'
        from CachingCallSite.java:225:in `callIter'
        from CallThreeArgBlockNode.java:64:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:276:in `call'
        from DefaultMethod.java:211:in `call'
        from CachingCallSite.java:205:in `call'
        from FCallThreeArgNode.java:40:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from ASTInterpreter.java:111:in `INTERPRET_BLOCK'
        from InterpretedBlock.java:374:in `evalBlockBody'
        from InterpretedBlock.java:347:in `yield'
        from InterpretedBlock.java:304:in `yield'
        from Block.java:130:in `yield'
        from RubyIO.java:1121:in `open'
        from RubyKernel.java:298:in `open'
        from RubyKernel$s$0$2$open.gen:65535:in `call'
        from DynamicMethod.java:217:in `call'
        from AliasMethod.java:91:in `call'
        from CachingCallSite.java:180:in `callBlock'
        from CachingCallSite.java:186:in `call'
        from FCallSpecialArgBlockPassNode.java:40:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from IfNode.java:119:in `interpret'
        from IfNode.java:119:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:255:in `call'
        from DefaultMethod.java:203:in `call'
        from CachingCallSite.java:180:in `callBlock'
        from CachingCallSite.java:191:in `callIter'
        from FCallTwoArgBlockNode.java:34:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from RescueNode.java:216:in `executeBody'
        from RescueNode.java:120:in `interpretWithJavaExceptions'
        from RescueNode.java:110:in `interpret'
        from BeginNode.java:83:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from IfNode.java:119:in `interpret'
        from IfNode.java:119:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:190:in `call'
        from DefaultMethod.java:179:in `call'
        from CachingCallSite.java:137:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from CallNoArgNode.java:62:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:190:in `call'
        from DefaultMethod.java:179:in `call'
        from CachingCallSite.java:137:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from LocalAsgnNode.java:123:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from IfNode.java:117:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:190:in `call'
        from DefaultMethod.java:179:in `call'
        from CachingCallSite.java:137:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from IfNode.java:117:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:111:in `INTERPRET_BLOCK'
        from InterpretedBlock.java:374:in `evalBlockBody'
        from InterpretedBlock.java:347:in `yield'
        from InterpretedBlock.java:304:in `yield'
        from Block.java:130:in `yield'
        from YieldNode.java:112:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from ASTInterpreter.java:111:in `INTERPRET_BLOCK'
        from InterpretedBlock.java:374:in `evalBlockBody'
        from InterpretedBlock.java:347:in `yield'
        from InterpretedBlock.java:304:in `yield'
        from Block.java:130:in `yield'
        from RubyArray.java:1595:in `eachCommon'
        from RubyArray.java:1602:in `each'
        from RubyArray$i$0$0$each.gen:65535:in `call'
        from CachingCallSite.java:112:in `callBlock'
        from CachingCallSite.java:123:in `callIter'
        from CallNoArgBlockNode.java:64:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:169:in `call'
        from DefaultMethod.java:171:in `call'
        from CachingCallSite.java:272:in `cacheAndCall'
        from CachingCallSite.java:114:in `callBlock'
        from CachingCallSite.java:123:in `callIter'
        from CallNoArgBlockNode.java:64:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:190:in `call'
        from DefaultMethod.java:179:in `call'
        from CachingCallSite.java:282:in `cacheAndCall'
        from CachingCallSite.java:139:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:276:in `call'
        from DefaultMethod.java:211:in `call'
        from CachingCallSite.java:322:in `cacheAndCall'
        from CachingCallSite.java:207:in `call'
        from CallThreeArgNode.java:61:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:169:in `call'
        from DefaultMethod.java:171:in `call'
        from RubyClass.java:522:in `finvoke'
        from RubyBasicObject.java:2746:in `send'
        from RubyKernel.java:2052:in `send'
        from RubyKernel$s$send.gen:65535:in `call'
        from JavaMethod.java:266:in `call'
        from CachingCallSite.java:282:in `cacheAndCall'
        from CachingCallSite.java:139:in `call'
        from CallSpecialArgNode.java:67:in `interpret'
        from IfNode.java:117:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from RescueNode.java:216:in `executeBody'
        from RescueNode.java:120:in `interpretWithJavaExceptions'
        from RescueNode.java:110:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:233:in `call'
        from DefaultMethod.java:195:in `call'
        from CachingCallSite.java:302:in `cacheAndCall'
        from CachingCallSite.java:173:in `call'
        from CallSpecialArgNode.java:69:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from IfNode.java:119:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:233:in `call'
        from DefaultMethod.java:195:in `call'
        from CachingCallSite.java:302:in `cacheAndCall'
        from CachingCallSite.java:173:in `call'
        from CallTwoArgNode.java:59:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:120:in `call'
        from InterpretedMethod.java:134:in `call'
        from DefaultMethod.java:154:in `call'
        from CachingCallSite.java:252:in `cacheAndCall'
        from CachingCallSite.java:71:in `call'
        from FCallManyArgsNode.java:60:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from RescueNode.java:216:in `executeBody'
        from RescueNode.java:120:in `interpretWithJavaExceptions'
        from RescueNode.java:110:in `interpret'
        from ASTInterpreter.java:74:in `INTERPRET_METHOD'
        from InterpretedMethod.java:147:in `call'
        from DefaultMethod.java:163:in `call'
        from CachingCallSite.java:262:in `cacheAndCall'
        from CachingCallSite.java:105:in `call'
        from CallNoArgNode.java:62:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from RescueNode.java:216:in `executeBody'
        from RescueNode.java:120:in `interpretWithJavaExceptions'
        from RescueNode.java:110:in `interpret'
        from BeginNode.java:83:in `interpret'
        from NewlineNode.java:103:in `interpret'
        from BlockNode.java:71:in `interpret'
        from RootNode.java:129:in `interpret'
        from ASTInterpreter.java:119:in `INTERPRET_ROOT'
        from Ruby.java:698:in `runInterpreter'
        from Ruby.java:2424:in `loadFile'
        from ExternalScript.java:66:in `load'
        from LoadService.java:272:in `load'
        from RubyKernel.java:1081:in `loadCommon'
        from RubyKernel.java:1063:in `load'
        from RubyKernel$s$0$1$load.gen:65535:in `call'
        from DynamicMethod.java:209:in `call'
        from DynamicMethod.java:205:in `call'
        from CachingCallSite.java:282:in `cacheAndCall'
        from CachingCallSite.java:139:in `call'
        from /Users/francois/.rvm/gems/jruby-1.6.1@techno/bin/bundle:19:in 
`__file__'
        from /Users/francois/.rvm/gems/jruby-1.6.1@techno/bin/bundle:-1:in 
`load'
        from Ruby.java:671:in `runScript'
        from Ruby.java:575:in `runNormally'
        from Ruby.java:424:in `runFromMain'
        from Main.java:278:in `doRunFromMain'
        from Main.java:198:in `internalRun'
        from Main.java:164:in `run'
        from Main.java:148:in `run'
        from Main.java:128:in `main'

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to