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

Lookup of critical JNI method causes duplicate library loading with leaking handler

    Details

    • Subcomponent:
    • Resolved In Build:
      b36

      Backports

        Description

        java/lang/ClassLoader/nativeLibrary/NativeLibraryTest.java failed on all platforms in hs PIT:

        #section:main
        ----------messages:(4/196)----------
        command: main -Xcheck:jni NativeLibraryTest
        reason: User specified action: run main/othervm/native -Xcheck:jni NativeLibraryTest
        Mode: othervm [/othervm specified]
        elapsed time (seconds): 19.326
        ----------configuration:(0/0)----------
        ----------System.out:(0/0)----------
        ----------System.err:(15/932)----------
        java.lang.RuntimeException: Expected count = 1 but got 2
        at testloader//p.Test.run(Test.java:34)
        at NativeLibraryTest.runTest(NativeLibraryTest.java:81)
        at NativeLibraryTest.main(NativeLibraryTest.java:56)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
        at java.base/java.lang.Thread.run(Thread.java:844)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected count = 1 but got 2
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected count = 1 but got 2
         

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thartmann Tobias Hartmann
                  Reporter:
                  iignatyev Igor Ignatyev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: