Details
-
Bug
-
Resolution: Fixed
-
P2
-
23
-
b05
-
x86_64
-
windows
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8324373 | 22.0.1 | Jorn Vernee | P2 | Resolved | Fixed | b02 |
JDK-8323589 | 22 | Jorn Vernee | P2 | Closed | Fixed | b32 |
Description
java/foreign/TestStubAllocFailure.java
Here's a snippet from the log file:
#section:testng
----------messages:(6/336)----------
command: testng --enable-native-access=ALL-UNNAMED TestStubAllocFailure
reason: User specified action: run testng/othervm/native --enable-native-access=ALL-UNNAMED TestStubAllocFailure
started: Mon Dec 18 18:45:40 UTC 2023
Mode: othervm [/othervm specified]
finished: Mon Dec 18 18:49:44 UTC 2023
elapsed time (seconds): 243.933
----------configuration:(0/0)----------
----------System.out:(61/7338)*----------
NativeTestHelper::DEFAULT_RANDOM.seed = -826157205
Re-run with '-DNativeTestHelper.DEFAULT_RANDOM.seed=-826157205' to reproduce
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\windows-x64.jdk\\jdk-23\\bin\\java.exe -cp C:\\sb\\prod\\1702924939\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part3\\classes\\3\\java\\foreign\\TestStubAllocFailure.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\src.full\\open\\test\\jdk\\java\\foreign;C:\\sb\\prod\\1702924939\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part3\\classes\\3\\java;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\src.full\\open\\test\\jdk\\java;C:\\sb\\prod\\1702924939\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part3\\classes\\3\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\testng-7.3.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\jcommander-1.82.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\guice-5.1.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\21\\35\\bundles\\windows-x64\\jdk-21_windows-x64_bin.zip\\jdk-21 -Djava.io.tmpdir=c:\\sb\\prod\\1702924939\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part3\\tmp -XX:+CreateCoredumpOnCrash -ea -esa --enable-native-access=ALL-UNNAMED -Djava.library.path=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\windows-x64.test\\jdk\\jtreg\\native -Djdk.internal.foreign.UpcallLinker.USE_SPEC=true -XX:ReservedCodeCacheSize=3M TestStubAllocFailure$DowncallRunner ]
test TestStubAllocFailure.testUDowncallAllocFailure(): failure
java.lang.AssertionError: Time out while waiting for process expected [true] but found [false]
at org.testng.Assert.fail(Assert.java:99)
at org.testng.Assert.failNotEquals(Assert.java:1037)
at org.testng.Assert.assertTrue(Assert.java:45)
at UpcallTestHelper.runInNewProcess(UpcallTestHelper.java:57)
at TestStubAllocFailure.testUDowncallAllocFailure(TestStubAllocFailure.java:56)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1570)
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\windows-x64.jdk\\jdk-23\\bin\\java.exe -cp C:\\sb\\prod\\1702924939\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part3\\classes\\3\\java\\foreign\\TestStubAllocFailure.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\src.full\\open\\test\\jdk\\java\\foreign;C:\\sb\\prod\\1702924939\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part3\\classes\\3\\java;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\src.full\\open\\test\\jdk\\java;C:\\sb\\prod\\1702924939\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part3\\classes\\3\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\testng-7.3.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\jcommander-1.82.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\guice-5.1.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\21\\35\\bundles\\windows-x64\\jdk-21_windows-x64_bin.zip\\jdk-21 -Djava.io.tmpdir=c:\\sb\\prod\\1702924939\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part3\\tmp -XX:+CreateCoredumpOnCrash -ea -esa --enable-native-access=ALL-UNNAMED -Djava.library.path=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+3-109\\windows-x64.test\\jdk\\jtreg\\native -Djdk.internal.foreign.UpcallLinker.USE_SPEC=true -XX:ReservedCodeCacheSize=3M TestStubAllocFailure$UpcallRunner ]
[2023-12-18T18:49:44.355852700Z] Gathering output for process 131436
NativeTestHelper::DEFAULT_RANDOM.seed = 1901524391
Re-run with '-DNativeTestHelper.DEFAULT_RANDOM.seed=1901524391' to reproduce
[1.010s][warning][codecache] CodeCache is full. Compiler has been disabled.
[1.010s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
CodeCache: size=3072Kb used=3071Kb max_used=3071Kb free=0Kb
bounds [0x0000023827cd0000, 0x0000023827fd0000, 0x0000023827fd0000]
total_blobs=2261 nmethods=296 adapters=347
compilation: disabled (not enough contiguous free space left)
stopped_count=1, restarted_count=0
full_count=1
[2023-12-18T18:49:44.371612300Z] Waiting for completion for process 131436
[2023-12-18T18:49:44.372145300Z] Waiting for completion finished for process 131436
test TestStubAllocFailure.testUpcallAllocFailure(): success
===============================================
java/foreign/TestStubAllocFailure.java
Total tests run: 2, Passes: 1, Failures: 1, Skips: 0
===============================================
----------System.err:(19/1237)----------
Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
Exception in thread "main" java.lang.OutOfMemoryError: Failed to allocate upcall stub
at java.base/jdk.internal.foreign.abi.UpcallLinker.lambda$makeFactory$4(UpcallLinker.java:110)
at java.base/jdk.internal.foreign.abi.AbstractLinker.upcallStub(AbstractLinker.java:134)
at TestStubAllocFailure$UpcallRunner.main(TestStubAllocFailure.java:66)
java.lang.Exception: failures: 1
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:104)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1570)
JavaTest Message: Test threw exception: java.lang.Exception: failures: 1
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 1
----------rerun:(42/6815)*----------
This failure occurred in jdk-23+3-109-tier1 and the fix for the following:
was integrated in jdk-23+2-63.
Attachments
Issue Links
- backported by
-
JDK-8324373 java/foreign/TestStubAllocFailure.java times out while waiting for forked process
- Resolved
-
JDK-8323589 java/foreign/TestStubAllocFailure.java times out while waiting for forked process
- Closed
- duplicates
-
JDK-8322988 Test java/foreign/TestStubAllocFailure.java still fails with code cache exhaustion
- Closed
- relates to
-
JDK-8321400 java/foreign/TestStubAllocFailure.java fails with code cache exhaustion
- Resolved
-
JDK-8322637 java/foreign/critical/TestCriticalUpcall.java timed out
- Resolved
- links to
-
Commit openjdk/jdk22/db342758
-
Commit openjdk/jdk/d2d58dd6
-
Review openjdk/jdk22/52
-
Review openjdk/jdk/17324