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

JDWP: ObjectReference.[GS]etValues fails in case static fields are passed

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Using JDWP commands ObjectReference.GetValues and ObjectReference.SetValues for static fields results in not changing fields values and jvm crash (SIGSEGV) in product build.
      Product build is crashed stably on Windows and intermittently on Linux

      Fastdebug VM build stably crashes with the following assertion:
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/BUILD_AREA/jdk7/hotspot/src/share/vm/prims/jni.cpp:175), pid=12827, tid=2910305168
      # Error: guarantee(jfieldIDWorkaround::is_instance_jfieldID(k, id),"must be an instance field")
      #
      # 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=12835, stack(0xad72b000,0xad77c000)]

      Stack: [0xad72b000,0xad77c000], sp=0xad77ab40, 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+0x3b0355];; _Z12report_fatalPKciS0_+0x55
      V [libjvm.so+0x4509fc];; _ZN18jfieldIDWorkaround24verify_instance_jfieldIDEP12klassOopDescP9_jfieldID+0x11c
      V [libjvm.so+0x47902f];; jni_GetLongField+0x16f
      C [libjdwp.so+0x2ae05];; .L242+0x2a
      C [libjdwp.so+0x2b5e2];; sharedGetFieldValues+0x102
      C [libjdwp.so+0x569e];; 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]



      The failure is reproduced at least with latest 6u6, 6u10, jdk7, both product and fastdebug bits.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: