Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jdk11: java/math/BigInteger/DivisionOverflow.java timeout writing javacore, intermitent #9998

Open
andrew-m-leonard opened this issue Jun 24, 2020 · 5 comments

Comments

@andrew-m-leonard
Copy link
Contributor

andrew-m-leonard commented Jun 24, 2020

Failure link

https://ci.adoptopenjdk.net/job/Test_openjdk11_j9_sanity.openjdk_x86-64_windows/251/testReport/junit/java_math_BigInteger_DivisionOverflow/java/DivisionOverflow/
test-softlayer-win2012r2-x64-1

Program `C:\Users\jenkins\workspace\Test_openjdk11_j9_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image\bin\java' timed out (timeout set to 960000ms, elapsed time including timeout handling was 960327ms).    

Optional info

  • intermittent failure (yes|no): YES, about 1 in 3 fails
@pshipton pshipton changed the title jdk11: java/math/BigInteger/DivisionOverflow.java Timeout, intermitent jdk11: java/math/BigInteger/DivisionOverflow.java OOM, intermitent Jun 24, 2020
@pshipton
Copy link
Member

1TISIGINFO Dump Event "systhrow" (00040000) Detail "java/lang/OutOfMemoryError" "Java heap space" received

3STHSTTYPE 02:45:26:489683997 GMT j9mm.101 - J9AllocateIndexableObject() returning NULL! 268435464 bytes requested for object of class 000000000002E000 from memory space 'Generational' id=0000004E134CC340

javacore is truncated so there is no stack trace. Core/heap dumps are disabled by default for these openjdk tests, because some of them intentionally create OOM.

The test is run with -Xmx512m, which perhaps just isn't enough. Not sure why this is set, although Hotspot runs with the same.
https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/openjdk/playlist.xml#L292

@pshipton
Copy link
Member

pshipton commented Jun 24, 2020

Checking if I can recreate in a grinder
5x https://ci.eclipse.org/openj9/view/Test/job/Grinder/922/ - passed

@pshipton
Copy link
Member

Actually, the test is supposed to handle OOM. I think it's hanging trying to write the javacore, there is no completion message.

JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2020/06/23 21:45:26 - please wait.
JVMDUMP032I JVM requested Java dump using 'C:\\Users\\jenkins\\workspace\\Test_openjdk11_j9_sanity.openjdk_x86-64_windows\\openjdk-tests\\TKG\\test_output_15929643393679\\jdk_math_j9_0\\work\\scratch\\javacore.20200623.214526.30020.0001.txt' in response to an event

@pshipton pshipton changed the title jdk11: java/math/BigInteger/DivisionOverflow.java OOM, intermitent jdk11: java/math/BigInteger/DivisionOverflow.java timeout writing javacore, intermitent Jun 24, 2020
@pshipton
Copy link
Member

pshipton commented Jun 24, 2020

This is a tricky one, probably requiring manual intervention to diagnose. When the test is hanging, use task manager to "create dump file". Or connect via the debugger and get a stack trace to see where it's hanging, but there may be no symbols, as the debug image is likely required.

@andrew-m-leonard I wonder if it's a machine problem. I haven't seen this problem on the OpenJ9 machines.

@andrew-m-leonard
Copy link
Contributor Author

It's happened on at least 2 different machines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants