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

JNI GetObjectRefType doesn't handle NULL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b01
    • Verification:
      Verified

      Description

      There are missing NULL checks in some JNIHandles functions.
      The assertion gets hit on all platforms. Stack on Windows:
      V [jvm.dll+0xbb501d] VMError::report_and_die+0x5d (vmerror.cpp:1241)
      V [jvm.dll+0x5286f8] report_vm_error+0x78 (debug.cpp:216)
      V [jvm.dll+0x9e4e0a] OopStorage::allocation_status+0x4a (oopstorage.cpp:611)
      V [jvm.dll+0x755c98] JNIHandles::handle_type+0x48 (jnihandles.cpp:209)
      V [jvm.dll+0x72e987] jni_GetObjectRefType+0x1c7 (jni.cpp:868)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              mdoerr Martin Doerr
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: