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

JDWP: ReferenceType.GetValues crashes jvm in case non-static fields are passed

XMLWordPrintable

    • generic
    • generic

      JDWP command ReferenceType.GetValues for non-static fields causes JVM to crash with SIGSEGV with product bits:

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x0623d919, pid=12940, tid=2910141328
      #
      # Java VM: Java HotSpot(TM) Client VM (13.0-b02 mixed mode linux-x86 )
      # Problematic frame:
      # V [libjvm.so+0x23d919]


      and to fail with the assertion with fastdebug bits:
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/BUILD_AREA/jdk7/hotspot/src/share/vm/runtime/jfieldIDWorkaround.hpp:144), pid=12970, tid=2909911952
      # Error: assert(jfieldIDWorkaround::is_static_jfieldID(id),"to_JNIid, but not static jfieldID")
      #
      # Java VM: Java HotSpot(TM) Client VM (13.0-b02-fastdebug mixed mode linux-x86 )
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      --------------- T H R E A D ---------------

      Current thread (0x080ef800): JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_vm, id=12978, stack(0xad6cb000,0xad71c000)]

      Stack: [0xad6cb000,0xad71c000], sp=0xad71abe0, free space=318k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x772673];; _ZN7VMError14report_and_dieEv+0x273
      V [libjvm.so+0x3b02f5];; _Z24report_assertion_failurePKciS0_+0x55
      V [libjvm.so+0x47dea9];; jni_GetStaticLongField+0x2d9
      C [libjdwp.so+0x2b390];; .L288+0x2a
      C [libjdwp.so+0x2b5c2];; sharedGetFieldValues+0xe2
      C [libjdwp.so+0x715e];; getValues+0x2e
      C [libjdwp.so+0x13023];; debugLoop_run+0x233
      C [libjdwp.so+0x27f35];; connectionInitiated+0x75
      C [libjdwp.so+0x28233];; attachThread+0x33
      V [libjvm.so+0x5b10b8];; _ZN16JvmtiAgentThread22start_function_wrapperEP10JavaThreadP6Thread+0x128
      V [libjvm.so+0x728f5c];; _ZN10JavaThread17thread_main_innerEv+0xcc
      V [libjvm.so+0x64507b];; _Z10java_startP6Thread+0x12b
      C [libpthread.so.0+0x5192]

            Unassigned Unassigned
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: