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

tests fail with "assert(_handle_mark_nesting > 1) failed: memory leak: allocating handle outside HandleMark"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      x86_64
    • OS:
      windows

      Description

      The following test failed in the JDK18 CI:

      serviceability/dcmd/gc/HeapDumpAllTest.java

      Here's a snippet from the log file:

      ----------stdout:(18/1117)*----------
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=\\handles.cpp:35
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (t:\\workspace\\open\\src\\hotspot\\share\\runtime\\handles.cpp:35), pid=3540, tid=25336
      # assert(_handle_mark_nesting > 1) failed: memory leak: allocating handle outside HandleMark
      #
      # JRE version: Java(TM) SE Runtime Environment (18.0+15) (fastdebug build 18-ea+15-794)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-ea+15-794, compiled mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Core dump will be written. Default location: T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\scratch\\5\\hs_err_pid3540.mdmp
      #
      # An error report file with more information is saved as:
      # T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\scratch\\5\\hs_err_pid3540.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      result: Error. Agent communication error: java.net.SocketException: Connection reset; check console log for any additional details


      Here's the crashing thread's stack:

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

      Current thread (0x000001a491005d00): GCTaskThread "GC Thread#2" [stack: 0x0000003d8c300000,0x0000003d8c400000] [id=25336] _threads_hazard_ptr=0x000001a48f54e810, _nested_threads_hazard_ptr_cnt=0

      Stack: [0x0000003d8c300000,0x0000003d8c400000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xadc411] os::platform_print_native_stack+0xf1 (os_windows_x86.cpp:235)
      V [jvm.dll+0xcf9675] VMError::report+0x1005 (vmError.cpp:742)
      V [jvm.dll+0xcfb01e] VMError::report_and_die+0x7fe (vmError.cpp:1552)
      V [jvm.dll+0xcfb7a4] VMError::report_and_die+0x64 (vmError.cpp:1333)
      V [jvm.dll+0x4ce027] report_vm_error+0xb7 (debug.cpp:282)
      V [jvm.dll+0x6594c0] HandleArea::allocate_handle+0x40 (handles.cpp:35)
      V [jvm.dll+0x4cfeb2] ConstantOopReadValue::ConstantOopReadValue+0x162 (debugInfo.cpp:267)
      V [jvm.dll+0x4d05d8] ScopeValue::read_from+0xe8 (debugInfo.cpp:108)
      V [jvm.dll+0x4d07ee] ObjectValue::read_object+0x1e (debugInfo.cpp:152)
      V [jvm.dll+0x4d0b6a] DebugInfoReadStream::read_object_value+0x1aa (debugInfo.cpp:80)
      V [jvm.dll+0x4d0663] ScopeValue::read_from+0x173 (debugInfo.cpp:111)
      V [jvm.dll+0xb87d1d] ScopeDesc::ScopeDesc+0x13d (scopeDesc.cpp:39)
      V [jvm.dll+0xcebba0] compiledVFrame::compiledVFrame+0xa0 (vframe_hp.cpp:293)
      V [jvm.dll+0xce7c23] vframe::new_vframe+0x173 (vframe.cpp:86)
      V [jvm.dll+0xce906e] vframe::sender+0x1be (vframe.cpp:112)
      V [jvm.dll+0xced8a5] compiledVFrame::sender+0xd5 (vframe_hp.cpp:388)
      V [jvm.dll+0xc8f693] ThreadStackTrace::dump_stack_at_safepoint+0x153 (threadService.cpp:669)
      V [jvm.dll+0x66380f] VM_HeapDumper::dump_stack_traces+0x23f (heapDumper.cpp:1868)
      V [jvm.dll+0x6650c6] VM_HeapDumper::work+0x226 (heapDumper.cpp:1815)
      V [jvm.dll+0xd3f28a] GangWorker::loop+0x8a (workgroup.cpp:240)
      V [jvm.dll+0xd3f32d] GangWorker::run+0x1d (workgroup.cpp:207)
      V [jvm.dll+0xc7c164] Thread::call_run+0x1b4 (thread.cpp:365)
      V [jvm.dll+0xadadce] thread_native_entry+0xae (os_windows.cpp:549)
      C [ucrtbase.dll+0x1fb80]
      C [KERNEL32.DLL+0x84d4]
      C [ntdll.dll+0x51781]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pliden Per Liden
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: