-
Bug
-
Resolution: Fixed
-
P3
-
20
-
b07
-
x86_64, aarch64
-
linux
-
Verified
The following test failed in the JDK20 CI:
java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnloadTest.java
Here's a snippet from the log file:
#section:main
----------messages:(4/202)----------
command: main -Xcheck:jni LoadLibraryUnloadTest
reason: User specified action: run main/othervm/native -Xcheck:jni LoadLibraryUnloadTest
Mode: othervm [/othervm specified]
elapsed time (seconds): 0.52
----------configuration:(0/0)----------
----------System.out:(6/785)----------
COMMAND: /opt/mach5/mesos/work_dir/jib-master/install/jdk-20+5-233/linux-x64.jdk/jdk-20/bin/java -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8821/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4d2ecfd7-5b3c-4cee-a8fe-e83c7eb61723/runs/66c051d6-e171-4cb6-b2a2-f611590d7184/testoutput/test-support/jtreg_open_test_jdk_tier1_part1/classes/4/java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnloadTest.d -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+5-233/linux-x64.test/jdk/jtreg/native LoadLibraryUnload
[2022-07-06T21:51:04.485063487Z] Gathering output for process 365633
Native library loaded.
Native library loaded from Class1.
Native library loaded from Class1.
Native library loaded in 1 threads
----------System.err:(13/846)----------
java.lang.RuntimeException: Failed to unload native library: expected true, was false
at jdk.test.lib.Asserts.fail(Asserts.java:594)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
at LoadLibraryUnloadTest.main(LoadLibraryUnloadTest.java:102)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed to unload native library: expected true, was false
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed to unload native library: expected true, was false
----------rerun:(36/6735)*----------
java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnloadTest.java
Here's a snippet from the log file:
#section:main
----------messages:(4/202)----------
command: main -Xcheck:jni LoadLibraryUnloadTest
reason: User specified action: run main/othervm/native -Xcheck:jni LoadLibraryUnloadTest
Mode: othervm [/othervm specified]
elapsed time (seconds): 0.52
----------configuration:(0/0)----------
----------System.out:(6/785)----------
COMMAND: /opt/mach5/mesos/work_dir/jib-master/install/jdk-20+5-233/linux-x64.jdk/jdk-20/bin/java -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8821/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4d2ecfd7-5b3c-4cee-a8fe-e83c7eb61723/runs/66c051d6-e171-4cb6-b2a2-f611590d7184/testoutput/test-support/jtreg_open_test_jdk_tier1_part1/classes/4/java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnloadTest.d -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+5-233/linux-x64.test/jdk/jtreg/native LoadLibraryUnload
[2022-07-06T21:51:04.485063487Z] Gathering output for process 365633
Native library loaded.
Native library loaded from Class1.
Native library loaded from Class1.
Native library loaded in 1 threads
----------System.err:(13/846)----------
java.lang.RuntimeException: Failed to unload native library: expected true, was false
at jdk.test.lib.Asserts.fail(Asserts.java:594)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
at LoadLibraryUnloadTest.main(LoadLibraryUnloadTest.java:102)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed to unload native library: expected true, was false
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed to unload native library: expected true, was false
----------rerun:(36/6735)*----------
- relates to
-
JDK-8290397 LoadLibraryUnload.java failed with "Too few cleared WeakReferences"
- Closed