Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8293282

LoadLibraryUnloadTest.java fails with "Too few cleared WeakReferences"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 20
    • 20
    • core-libs

    Description

      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/204)----------
      command: main -Xcheck:jni LoadLibraryUnloadTest
      reason: User specified action: run main/othervm/native -Xcheck:jni LoadLibraryUnloadTest
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 30.295
      ----------configuration:(0/0)----------
      ----------System.out:(15/1225)----------
      COMMAND: /opt/mach5/mesos/work_dir/jib-master/install/jdk-20+14-879/linux-aarch64.jdk/jdk-20/bin/java -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S78769/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2b60eee2-a982-4008-9874-cdd81dbc3722/runs/535e1638-b004-48b1-93a2-e009fbde5a99/testoutput/test-support/jtreg_open_test_jdk_tier1_part1/classes/1/java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnloadTest.d -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+14-879/linux-aarch64.test/jdk/jtreg/native LoadLibraryUnload
      [2022-09-01T22:00:13.160548616Z] Gathering output for process 3226617
      Native library loaded.
      Native library loaded from Class1.
      Native library loaded from Class1.
      GlobalRef created
      GlobalRef deleted
      Native library unloaded.
      0 dequeued: null
      Exception in thread "main" java.lang.RuntimeException: Too few cleared WeakReferences
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at LoadLibraryUnload.main(LoadLibraryUnload.java:170)
      Native library loaded in 1 threads
      [2022-09-01T22:00:43.343376553Z] Waiting for completion for process 3226617
      [2022-09-01T22:00:43.343503273Z] Waiting for completion finished for process 3226617
      ----------System.err:(13/857)----------
      java.lang.RuntimeException: LoadLibraryUnload exit value not zero: expected 0 to equal 1
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
      at LoadLibraryUnloadTest.main(LoadLibraryUnloadTest.java:106)
      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: LoadLibraryUnload exit value not zero: expected 0 to equal 1

      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: