[1.9] /ASCII/u.encoding crashes JRuby
-------------------------------------

                 Key: JRUBY-4459
                 URL: http://jira.codehaus.org/browse/JRUBY-4459
             Project: JRuby
          Issue Type: Bug
            Reporter: Vladimir Sizikov
            Assignee: Thomas E Enebo


At least, on Linux for me:

{noformat}
>jruby --1.9 -S irb
irb(main):001:0> /ASCII/u.encoding
EncodingService.java:83:in `getEncoding': 
java.lang.ArrayIndexOutOfBoundsException: 4
        from RubyRegexp.java:1743:in `encoding'
        from org/jruby/RubyRegexp$i_method_0_0$RUBYINVOKER$encoding.gen:-1:in 
`call'
        from CachingCallSite.java:289:in `cacheAndCall'
        from CachingCallSite.java:108:in `call'
        from CallNoArgNode.java:61:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from RootNode.java:129:in `interpret'
        from ASTInterpreter.java:98:in `evalWithBinding'
        from RubyKernel.java:1029:in `eval'
        from org/jruby/RubyKernel$s_method_0_3$RUBYFRAMEDINVOKER$eval.gen:-1:in 
`call'
        from DynamicMethod.java:160:in `call'
        from CachingCallSite.java:279:in `cacheAndCall'
        from CachingCallSite.java:68:in `call'
        from FCallManyArgsNode.java:60:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from InterpretedMethod.java:112:in `call'
        from InterpretedMethod.java:124:in `call'
        from CachingCallSite.java:279:in `cacheAndCall'
        from CachingCallSite.java:68:in `call'
        from CallManyArgsNode.java:59:in `interpret'
        from FCallOneArgNode.java:36:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from InterpretedMethod.java:210:in `call'
        from CachingCallSite.java:329:in `cacheAndCall'
        from CachingCallSite.java:188:in `call'
        from CallTwoArgNode.java:59:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from RescueNode.java:225:in `executeBody'
        from RescueNode.java:121:in `interpretWithoutJavaExceptions'
        from RescueNode.java:112:in `interpret'
        from BeginNode.java:83:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from Interpreted19Block.java:186:in `evalBlockBody'
        from Interpreted19Block.java:138:in `yield'
        from Interpreted19Block.java:111:in `yieldSpecific'
        from Block.java:99:in `yieldSpecific'
        from ZYieldNode.java:25:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from EnsureNode.java:96:in `interpret'
        from BeginNode.java:83:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from InterpretedMethod.java:192:in `call'
        from CachingCallSite.java:319:in `cacheAndCall'
        from CachingCallSite.java:157:in `callBlock'
        from CachingCallSite.java:172:in `callIter'
        from FCallOneArgBlockNode.java:34:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from Interpreted19Block.java:186:in `evalBlockBody'
        from Interpreted19Block.java:174:in `yield'
        from Interpreted19Block.java:158:in `yield'
        from Interpreted19Block.java:121:in `yieldSpecific'
        from Block.java:117:in `yieldSpecific'
        from YieldTwoNode.java:31:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from IfNode.java:117:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from RescueNode.java:225:in `executeBody'
        from RescueNode.java:121:in `interpretWithoutJavaExceptions'
        from RescueNode.java:112:in `interpret'
        from BeginNode.java:83:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from Interpreted19Block.java:186:in `evalBlockBody'
        from Interpreted19Block.java:138:in `yield'
        from Block.java:194:in `yield'
        from RubyKernel.java:1235:in `loop_1_9'
        from 
org/jruby/RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER$loop_1_9.gen:-1:in `call'
        from CachingCallSite.java:299:in `cacheAndCall'
        from CachingCallSite.java:117:in `callBlock'
        from CachingCallSite.java:132:in `callIter'
        from FCallNoArgBlockNode.java:32:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from Interpreted19Block.java:186:in `evalBlockBody'
        from Interpreted19Block.java:138:in `yield'
        from Block.java:194:in `yield'
        from RubyContinuation.java:105:in `enter'
        from RubyKernel.java:1077:in `rbCatch'
        from 
org/jruby/RubyKernel$s_method_1_0$RUBYFRAMEDINVOKER$rbCatch.gen:-1:in `call'
        from CachingCallSite.java:319:in `cacheAndCall'
        from CachingCallSite.java:157:in `callBlock'
        from CachingCallSite.java:172:in `callIter'
        from FCallOneArgBlockNode.java:34:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from InterpretedMethod.java:155:in `call'
        from CachingCallSite.java:299:in `cacheAndCall'
        from CachingCallSite.java:117:in `callBlock'
        from CachingCallSite.java:122:in `call'
        from CallNoArgBlockNode.java:64:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from InterpretedMethod.java:136:in `call'
        from CachingCallSite.java:289:in `cacheAndCall'
        from CachingCallSite.java:108:in `call'
        from CallNoArgNode.java:61:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from Interpreted19Block.java:186:in `evalBlockBody'
        from Interpreted19Block.java:138:in `yield'
        from Block.java:194:in `yield'
        from RubyContinuation.java:105:in `enter'
        from RubyKernel.java:1077:in `rbCatch'
        from 
org/jruby/RubyKernel$s_method_1_0$RUBYFRAMEDINVOKER$rbCatch.gen:-1:in `call'
        from CachingCallSite.java:319:in `cacheAndCall'
        from CachingCallSite.java:157:in `callBlock'
        from CachingCallSite.java:172:in `callIter'
        from FCallOneArgBlockNode.java:34:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from EnsureNode.java:96:in `interpret'
        from BeginNode.java:83:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from InterpretedMethod.java:173:in `call'
        from CachingCallSite.java:309:in `cacheAndCall'
        from CachingCallSite.java:148:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from IfNode.java:117:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from RootNode.java:129:in `interpret'
        from Ruby.java:657:in `runInterpreter'
        from Ruby.java:553:in `runNormally'
        from Ruby.java:395:in `runFromMain'
        from Main.java:272:in `run'
        from Main.java:117:in `run'
        from Main.java:97:in `main'
{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