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

LoadLibraryUnload.java failed with "Too few cleared WeakReferences"

    XMLWordPrintable

Details

    • b07
    • x86_64
    • linux, windows
    • Verified

    Description

      The following test failed in the JDK20 CI:

      java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnload.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(4/200)----------
      command: main -Xcheck:jni LoadLibraryUnload
      reason: User specified action: run main/othervm/native -Xcheck:jni LoadLibraryUnload
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 98.677
      ----------configuration:(0/0)----------
      ----------System.out:(7/178)----------
      Native library loaded.
      Native library loaded from Class1.
      Native library loaded from Class1.
      GlobalRef created
      GlobalRef deleted
      Native library unloaded.
      0 dequeued: null
      ----------System.err:(12/715)----------
      java.lang.RuntimeException: Too few cleared WeakReferences
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at LoadLibraryUnload.main(LoadLibraryUnload.java:172)
      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: Too few cleared WeakReferences
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Too few cleared WeakReferences
      ----------rerun:(50/6100)*----------

      These failures first appeared in jdk-20+7-329-tier6 which includes the fix for:

      JDK-8289919 [test] LoadLibraryUnloadTest.java failed with "Failed to unload native library"

      so [~rriggs] will probably be interested in this bug.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: