OutOfMemoryException in simple String#scan case
-----------------------------------------------
Key: JRUBY-1718
URL: http://jira.codehaus.org/browse/JRUBY-1718
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1b2
Environment: JRuby 1.1b1 from trunk, Ubuntu Linux 7.10
Reporter: Vladimir Sizikov
Priority: Critical
"hello".scan(/()/) leads to the:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.jruby.RubyArray.alloc(RubyArray.java:297)
at org.jruby.RubyArray.<init>(RubyArray.java:222)
at org.jruby.RubyArray.newArray(RubyArray.java:117)
at org.jruby.Ruby.newArray(Ruby.java:2070)
at org.jruby.RubyString.scanOnce(RubyString.java:2601)
at org.jruby.RubyString.scan(RubyString.java:2533)
at org.jruby.RubyStringInvoker$scan_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 scan.__file__(scan.rb:1)
at scan.load(scan.rb)
at org.jruby.Ruby.runScript(Ruby.java:588)
at org.jruby.Ruby.runNormally(Ruby.java:517)
at org.jruby.Ruby.runFromMain(Ruby.java:440)
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 problem leads to rubinius spec failures.
--
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