Compiler/Regex integration bug
------------------------------
Key: JRUBY-1668
URL: http://jira.codehaus.org/browse/JRUBY-1668
Project: JRuby
Issue Type: Bug
Reporter: Marcin Mielżyński
Assignee: Thomas E Enebo
While doing some String method fixes (String#rindex) I encountered following
stacktrace during test suite run:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
at org.joni.SearchAlgorithm$6.searchBackward(SearchAlgorithm.java:374)
at org.joni.Matcher.backwardSearchRange(Matcher.java:175)
at org.joni.Matcher.search(Matcher.java:453)
at org.jruby.RubyRegexp.search(RubyRegexp.java:460)
at org.jruby.RubyString.rindex(RubyString.java:1960)
at org.jruby.RubyStringInvoker$rindex_method_1_1.call(Unknown Source)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at run.__file__(run.rb:3239)
at run.load(run.rb)
at org.jruby.Ruby.runScript(Ruby.java:577)
at org.jruby.Ruby.runNormally(Ruby.java:507)
at org.jruby.Ruby.runFromMain(Ruby.java:430)
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)
this is while executing tc_rindex.rb test, the case:
"hello".rindex(/\w+/)
This doesn't show up with compiler turned off though. There was a bogus
workaround to make it run (but my impl now matches MRI, so I think the problem
is somewhere else)
Any thoughts ? (keep in mind I'm not matching trunk now) I'ts late now, I'll to
dive into compiler/regex stuff tomorrow.
--
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