Issue2798

classification
Title: OpenJDK 1.7.0_75-b13 string regrtest OutOfMemory on windows
Type: crash Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: adamburke
Priority: Keywords:

Created on 2019-08-30.02:07:28 by adamburke, last changed 2019-08-30.02:07:28 by adamburke.

Messages
msg12644 (view) Author: Adam Burke (adamburke) Date: 2019-08-30.02:07:28
The regrtest for Jython 2.7.2a+ will show the following failures under OpenJDK 1.7.0_75-b13 on Windows.

Tests are test_bytes test_codecencodings_tw test_lib2to3 test_shadowstr_jy test_str test_string test_sys test_unicode test_userstring

Shows as an OutOfMemoryError:

======================================================================
ERROR: test_replace_overflow (test.test_userstring.MutableStringTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Adam\jython\jython4\dist\Lib\test\string_tests.py", line 893, in test_replace_overflow
    self.checkraises(OverflowError, A2_16, "replace", "", A2_16)
  File "C:\Users\Adam\jython\jython4\dist\Lib\test\test_userstring.py", line 35, in checkraises
    self.assertRaises(
  File "C:\Users\Adam\jython\jython4\dist\Lib\unittest\case.py", line 476, in assertRaises
    callableObj(*args, **kwargs)
  File "C:\Users\Adam\jython\jython4\dist\Lib\UserString.py", line 108, in replace
    return self.__class__(self.data.replace(old, new, maxsplit))
OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space

Found during this work https://github.com/jythontools/jython/pull/132 which also shows passing on Oracle 1.7.0_80-b15 and other versions.

Given the current out of life state of Java 7, we may not necessarily choose to fix this, but I thought it worth documenting here regardless.
History
Date User Action Args
2019-08-30 02:07:28adamburkecreate