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

NMTCommittedVirtualMemoryTracker.test_committed_virtualmemory_region_vm fails with assertion "negative distance"

XMLWordPrintable

    • b11

      ```
      [ RUN ] NMTCommittedVirtualMemoryTracker.test_committed_virtualmemory_region_vm
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (c:\\a\\jdk\\jdk\\src\\hotspot\\share\\nmt/regionsTree.hpp:64), pid=6956, tid=9528
      # assert(position() > other.position()) failed: negative distance
      #
      # JRE version: OpenJDK Runtime Environment (26.0) (fastdebug build 26-internal-tstuefe-de2f3bfe9d8de57cb088f2a6cfa0a21210ebde05)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 26-internal-tstuefe-de2f3bfe9d8de57cb088f2a6cfa0a21210ebde05, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Problematic frame:
      # V [jvm.dll+0x1615df3] Treap<unsigned __int64,VMATree::IntervalChange,VMATree::PositionComparator,TreapCHeapAllocator>::visit_in_order<`RegionsTree::visit_reserved_regions<`VirtualMemoryTracker::walk_virtual_memory'::`2'::<lambda_1> >'::`2'::<lambda_1> >+0x313
      #
      # Core dump will be written. Default location: C:\\a\\jdk\\jdk\\build\\run-test-prebuilt\\test-support\\jtreg_test_hotspot_jtreg_tier1_common\\scratch\\hs_err_pid6956.mdmp
      #
      # An error report file with more information is saved as:
      # C:\\a\\jdk\\jdk\\build\\run-test-prebuilt\\test-support\\jtreg_test_hotspot_jtreg_tier1_common\\scratch\\hs_err_pid6956.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      ```

      Stack

      ```
      Stack: [0x000000d4c3c00000,0x000000d4c3d00000], sp=0x000000d4c3cfe290, free space=1016k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x1615df3] Treap<unsigned __int64,VMATree::IntervalChange,VMATree::PositionComparator,TreapCHeapAllocator>::visit_in_order<`RegionsTree::visit_reserved_regions<`VirtualMemoryTracker::walk_virtual_memory'::`2'::<lambda_1> >'::`2'::<lambda_1> >+0x313 (nmtTreap.hpp:387)
      V [jvm.dll+0x1617b3c] VirtualMemoryTracker::Instance::snapshot_thread_stacks+0xec (virtualMemoryTracker.cpp:327)
      V [jvm.dll+0x178c79] CommittedVirtualMemoryTest::test+0x139 (test_committed_virtualmemory.cpp:46)
      V [jvm.dll+0x177e1d] NMTCommittedVirtualMemoryTracker_test_committed_virtualmemory_region_vm_Test::TestBody+0x2d (test_committed_virtualmemory.cpp:236)
      V [jvm.dll+0x16fadbd] testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void>+0x5d (gtest.cc:2670)
      V [jvm.dll+0x1723b34] testing::TestInfo::Run+0x1b4 (gtest.cc:2836)
      V [jvm.dll+0x1723ec6] testing::TestSuite::Run+0x2a6 (gtest.cc:3017)
      V [jvm.dll+0x17248d3] testing::internal::UnitTestImpl::RunAllTests+0x5b3 (gtest.cc:5921)
      V [jvm.dll+0x16faec1] testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool>+0x61 (gtest.cc:2670)
      V [jvm.dll+0x172418d] testing::UnitTest::Run+0x13d (gtest.cc:5484)
      V [jvm.dll+0x9f746] runUnitTestsInner+0x356 (gtestMain.cpp:292)
      V [jvm.dll+0x9f995] runUnitTests+0xb5 (gtestMain.cpp:373)
      C [gtestLauncher.exe+0x101c] main+0x1c (gtestLauncher.cpp:40)
      C [gtestLauncher.exe+0x121c] __scrt_common_main_seh+0x10c (exe_common.inl:288)
      C [KERNEL32.DLL+0x2e8d7] (no source info available)
      C [ntdll.dll+0x3c34c] (no source info available)
      ```

      https://github.com/tstuefe/jdk/actions/runs/16593350383/attempts/1#user-content-gtest_nmtgtests#nmt-detail

            azafari Afshin Zafari
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: