NegativeArraySizeException starting JIRB (ByteList/RubyString)
--------------------------------------------------------------

                 Key: JRUBY-1702
                 URL: http://jira.codehaus.org/browse/JRUBY-1702
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: trunk (5209), WinXp, Java 1.6
            Reporter: Bill Dortch
            Priority: Blocker
             Fix For: JRuby 1.1


After clean build of 5209:

{noformat}
C:\jruby\trunk>jirb
Exception in thread "main" java.lang.NegativeArraySizeException
        at org.jruby.util.ByteList.<init>(ByteList.java:66)
        at org.jruby.RubyString.op_plus(RubyString.java:375)
        at org.jruby.RubyStringInvoker$op_plus_method_1_0.call(Unknown Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at 
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:644)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
        at 
org.jruby.evaluator.ASTInterpreter.setupArgs(ASTInterpreter.java:2139)
        at 
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1088)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:346)
        at org.jruby.evaluator.ASTInterpreter.caseNode(ASTInterpreter.java:722)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:176)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:141)
        at org.jruby.runtime.Block.yield(Block.java:110)
        at org.jruby.RubyString.gsub(RubyString.java:1751)
        at org.jruby.RubyString.gsub_bang(RubyString.java:1691)
        at org.jruby.RubyStringInvoker$gsub_bang_method_1_1.call(Unknown Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:658)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at 
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
        at 
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1093)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:346)
        at org.jruby.evaluator.ASTInterpreter.dAsgnNode(ASTInterpreter.java:851)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:320)
        at 
org.jruby.evaluator.ASTInterpreter.setupArgs(ASTInterpreter.java:2139)
        at 
org.jruby.evaluator.ASTInterpreter.attrAssignNode(ASTInterpreter.java:573)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:285)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:176)
        at org.jruby.runtime.InterpretedBlock.call(InterpretedBlock.java:129)
        at org.jruby.runtime.Block.call(Block.java:106)
        at org.jruby.RubyProc.call(RubyProc.java:193)
        at org.jruby.RubyProc.call(RubyProc.java:177)
        at org.jruby.RubyProcInvoker$call_method_0_0.call(Unknown Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at 
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at 
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:76)
        at 
org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1733)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:475)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at 
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:76)
        at 
org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1733)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:475)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:658)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at 
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:176)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:141)
        at org.jruby.runtime.Block.yield(Block.java:110)
        at org.jruby.RubyKernel.rbCatch(RubyKernel.java:762)
        at org.jruby.RubyKernelInvoker$rbCatch_method_1_0.call(Unknown Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at 
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1098)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:346)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
        at 
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
        at c:.jruby.trunk.bin.j.__file__(c:\jruby\trunk\bin\jirb:13)
        at c:.jruby.trunk.bin.j.load(c:\jruby\trunk\bin\jirb)
        at org.jruby.Ruby.runScript(Ruby.java:575)
        at org.jruby.Ruby.runNormally(Ruby.java:504)
        at org.jruby.Ruby.runFromMain(Ruby.java:427)
        at org.jruby.Main.runInterpreter(Main.java:214)
        at org.jruby.Main.runInterpreter(Main.java:170)
        at org.jruby.Main.run(Main.java:119)
        at org.jruby.Main.run(Main.java:93)
        at org.jruby.Main.main(Main.java:84)

{noformat}

-- 
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