Details
-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
None
Description
We get regular failures of this test in our CI with oom.
Obviously the test is supposed to stress the memory, but it should catch the ooms it causes.
We see this in 11, 17, 21 and 22 lately, i.e. all the versions we test regularly. Frequency is 2-3 failures a month.
Platforms we see this on are mac M1, windows, alpine, and, further back, linuxppc64le and linuxx86_64.
From a test failure:
----------System.err:(27/1464)----------
stdout: [[0.009s][warning][gc] Shenandoah I-U mode sets -XX:-ClassUnloadingWithConcurrentMark; see JDK-8261341 for details
];
stderr: [Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at TestClassLoaderLeak$Dummy.<clinit>(TestClassLoaderLeak.java:49)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at TestClassLoaderLeak.load(TestClassLoaderLeak.java:77)
at TestClassLoaderLeak.main(TestClassLoaderLeak.java:121)
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:489)
at TestClassLoaderLeak.testWith(TestClassLoaderLeak.java:107)
at TestClassLoaderLeak.passWith(TestClassLoaderLeak.java:85)
at TestClassLoaderLeak.main(TestClassLoaderLeak.java:142)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:840)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
Obviously the test is supposed to stress the memory, but it should catch the ooms it causes.
We see this in 11, 17, 21 and 22 lately, i.e. all the versions we test regularly. Frequency is 2-3 failures a month.
Platforms we see this on are mac M1, windows, alpine, and, further back, linuxppc64le and linuxx86_64.
From a test failure:
----------System.err:(27/1464)----------
stdout: [[0.009s][warning][gc] Shenandoah I-U mode sets -XX:-ClassUnloadingWithConcurrentMark; see JDK-8261341 for details
];
stderr: [Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at TestClassLoaderLeak$Dummy.<clinit>(TestClassLoaderLeak.java:49)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at TestClassLoaderLeak.load(TestClassLoaderLeak.java:77)
at TestClassLoaderLeak.main(TestClassLoaderLeak.java:121)
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:489)
at TestClassLoaderLeak.testWith(TestClassLoaderLeak.java:107)
at TestClassLoaderLeak.passWith(TestClassLoaderLeak.java:85)
at TestClassLoaderLeak.main(TestClassLoaderLeak.java:142)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:840)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]