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

libjdwp crash while debugging application ran on OpenJDK 16

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 16, 17
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
      svc
    • CPU:
      x86_64
    • OS:
      linux_redhat_7.3

      Description

      A DESCRIPTION OF THE PROBLEM :
      OpenJDK 16 and OpenJDK 17 early access crash while an application running on the JDK is being debugged by Eclipse.

      openjdk version "16.0.1" 2021-04-20
      OpenJDK Runtime Environment (build 16.0.1+9-24)
      OpenJDK 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

      openjdk version "17-ea" 2021-09-14
      OpenJDK Runtime Environment (build 17-ea+25-2252)
      OpenJDK 64-Bit Server VM (build 17-ea+25-2252, mixed mode, sharing)

      In particular, we have an Eclipse based application, that debugs another Java application (among other parts of our product). While measuring performance with OpenJDK 17 (early access build) and Shenandoah GC, we observe the crash (see log excerpt below) at a debugger detach.

      RHEL bugzilla ticket: https://bugzilla.redhat.com/show_bug.cgi?id=1972529

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Crash log from a fast debug build of OpenJDK 16.0.1:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/tmp/jep2604_fastdebug_jdk16/jdk16/src/hotspot/share/runtime/jniHandles.cpp:148), pid=81289, tid=56880
      # assert(!is_jweak(handle)) failed: wrong method for detroying jweak
      #
      # JRE version: OpenJDK Runtime Environment (16.0) (fastdebug build 16-internal+0-adhoc.sandreev.jdk16)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 16-internal+0-adhoc.sandreev.jdk16, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x1043cb4] JNIHandles::destroy_global(_jobject*)+0x224
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /tmp/st8-gui-automation-test/GUIPerfTest/workspaces/Lahaina_GUIPerf_deviceFromSVN/core.81289)
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- S U M M A R Y ------------

      ...

      Host: socbm775, Intel(R) Xeon(R) W-2145 CPU @ 3.70GHz, 16 cores, 125G, Red Hat Enterprise Linux Workstation release 7.4 (Maipo)
      Time: Tue Jun 22 14:11:27 2021 CEST elapsed time: 7011.035246 seconds (0d 1h 56m 51s)

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

      Current thread (0x00007fff58104d50): JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_vm, id=56880, stack(0x00007ffe3c4f5000,0x00007ffe3c5f6000)]

      Stack: [0x00007ffe3c4f5000,0x00007ffe3c5f6000], sp=0x00007ffe3c5f4be0, free space=1022k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1043cb4] JNIHandles::destroy_global(_jobject*)+0x224
      V [libjvm.so+0xfafd9f] jni_DeleteGlobalRef+0x10f
      C [libjdwp.so+0xf11a] deleteNode+0x7a
      C [libjdwp.so+0xf71f] commonRef_reset+0x6f
      C [libjdwp.so+0x10dec] debugInit_reset+0x6c
      C [libjdwp.so+0x270a2] acceptThread+0xa2
      V [libjvm.so+0x127c054] JvmtiAgentThread::call_start_function()+0x1d4
      V [libjvm.so+0x1a51e9a] JavaThread::thread_main_inner()+0x5ba
      V [libjvm.so+0x1a589e0] Thread::call_run()+0x100
      V [libjvm.so+0x15fbd26] thread_native_entry(Thread*)+0x116

      #-----------------------------------------------------------#

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sswsharm swati sharma
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: