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

Incorrect JNU_ReleaseStringPlatformChars in Windows Print

    Details

    • Subcomponent:
    • Resolved In Build:
      b16
    • CPU:
      x86_64
    • OS:
      windows_2012

      Backports

        Description

        FULL PRODUCT VERSION :
        openjdk version "11.0.6" 2020-01-14
        OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10)
        Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.18.1, JRE 11 Windows Server 2012 R2 amd64-64-Bit Compressed References 20200122_442 (JIT enabled, AOT enabled)
        OpenJ9 - 51a5857d2
        OMR - 7a1b0239a
        JCL - da35e0c380 based on jdk-11.0.6+10)

        ADDITIONAL OS VERSION INFORMATION :
        Windows Server 2012R2

        A DESCRIPTION OF THE PROBLEM :
        Eclipse OpenJ9 VM detected some JNI errors about ReleaseStringChars in Windows Print.
        (Hotspot VM has different checks and other warnings were detected.)

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        1. Launch SwingSet2 demo with jni checking and OpenJ9
        2. Move to TableDemo
        3. Click "Print" button
        Then, the following errors were detected.

        $ java -Xcheck:jni:nonfatal -jar SwingSet2.jar
        JVMJNCK001I JNI check utility installed. Use -Xcheck:jni:help for usage
        JVMJNCK056E JNI error in ReleaseStringChars: Got memory 0x000000A290E3F3E8 from object 0x00000000002F47E0, releasing from 0x00000000002F47E8
        JVMJNCK077E Error detected in sun/print/Win32PrintService.getCapabilities(Ljava/lang/String;Ljava/lang/String;)I

        JVMJNCK023E JNI error detected. Continuing...
        JVMJNCK056E JNI error in ReleaseStringChars: Got memory 0x000000A290E403A8 from object 0x00000000002F47B8, releasing from 0x00000000002F47C0
        JVMJNCK077E Error detected in sun/print/Win32PrintService.getAllResolutions(Ljava/lang/String;Ljava/lang/String;)[I

        JVMJNCK023E JNI error detected. Continuing...

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        Expected: No errro
        Actual: JNI errors were detected

        REPRODUCIBILITY :
        This bug can be reproduced always.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tnakamura Toshio Nakamura
                  Reporter:
                  tnakamura Toshio Nakamura
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: