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

Test gtest/NMTGtests.java#nmt-detail causing asserts and crashes related to VMATree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • 26
    • 26
    • hotspot
    • generic
    • generic

      We observed a number of crashes and asserts in recent weeks caused by this test .

      assert linux aarch64 :
      # Internal Error (/priv/jenkins/client-home/workspace/openjdk-jdk-dev-linux_aarch64-dbg/jdk/src/hotspot/share/utilities/rbTree.inline.hpp:234), pid=705683, tid=705963
      # assert(node_cursor.valid() && !node_cursor.found()) failed: must be
      #

      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1f491e8] VMATree::register_mapping(unsigned long, unsigned long, VMATree::StateType, VMATree::RegionData const&, bool)::{lambda(RBNode<unsigned long, VMATree::IntervalChange>*)#1}::operator()(RBNode<unsigned long, VMATree::IntervalChange>*) const+0x218 (rbTree.inline.hpp:234)
      V [libjvm.so+0x1f4b418] VMATree::register_mapping(unsigned long, unsigned long, VMATree::StateType, VMATree::RegionData const&, bool)+0xc98 (vmatree.cpp:628)
      V [libjvm.so+0x1a94688] RegionsTree::commit_region(unsigned char*, unsigned long, NativeCallStack const&)+0x68 (vmatree.hpp:302)
      V [libjvm.so+0x1f0bb70] VirtualMemoryTracker::add_committed_region(unsigned char*, unsigned long, NativeCallStack const&)+0x20 (virtualMemoryTracker.cpp:152)
      V [libjvm.so+0x196ccf8] os::commit_memory(char*, unsigned long, bool)+0x198 (memTracker.hpp:172)
      V [libjvm.so+0x1d03574] StackOverflow::create_stack_guard_pages()+0x70 (stackOverflow.cpp:95)
      V [libjvm.so+0x132e378] JavaThread::run()+0x28 (javaThread.cpp:724)
      V [libjvm.so+0x1e350c0] Thread::call_run()+0xac (thread.cpp:243)
      V [libjvm.so+0x1977e54] thread_native_entry(Thread*)+0x130 (os_linux.cpp:868)
      C [libc.so.6+0x8595c]
      Registers:
      R0=0x0000f1d3e73b12f0
      R1=0x00000000000000ea
      R2=0x0000f1d3e73b1b60
      R3=0x0000f1d3e7378940
      R4=0x0000f1d3e7f85000
      R5=0x0000000000000058
      R6=0x0000f1d3e7bb84d8
      R7=0x000000000000000f
      R8=0x0000f1d3ba607eb8
      R9=0xffffffffffffc000
      R10=0x0000b255460d2808
      R11=0x0000f1d3e7f07860
      R12=0x0000000000005620
      R13=0x0000f1d3ba607f5f
      R14=0x0000000000000020
      R15=0x0000000000000001
      R16=0x0000f1d3e7b9f098
      R17=0x0000f1d3e5062ec0
      R18=0x0000000000000003
      R19=0x0000f1d3ba608140
      R20=0x0000b255462fab30
      R21=0x0000b255462fab40
      R22=0x0000b255460a52b0
      R23=0x0000f1d3ba608168
      R24=0x0000f1d3ba608180
      R25=0x0000f1d3e7b8a000
      R26=0x0000f1d3ba40c000
      R27=0x0000b255460a52b0
      R28=0x0000b255462fab30
      R29=0x0000f1d3ba607f50
      R30=0x0000f1d3e71790c8

      Crash Linux x86_64 Alpine :
      # SIGSEGV (0xb) at pc=0x00007f8d0b6bb15a, pid=26565, tid=26585
      #

      # Problematic frame:
      # V [libjvm.so+0x16bb15a] VMATree::update_region(RBNode<unsigned long, VMATree::IntervalChange>*, RBNode<unsigned long, VMATree::IntervalChange>*, VMATree::RequestInfo const&, VMATree::SummaryDiff&)+0x1a

      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x16bb15a] VMATree::update_region(RBNode<unsigned long, VMATree::IntervalChange>*, RBNode<unsigned long, VMATree::IntervalChange>*, VMATree::RequestInfo const&, VMATree::SummaryDiff&)+0x1a (vmatree.cpp:213)
      V [libjvm.so+0x16bceae] VMATree::register_mapping(unsigned long, unsigned long, VMATree::StateType, VMATree::RegionData const&, bool)+0x133e (vmatree.cpp:338)
      V [libjvm.so+0x169d23e] VirtualMemoryTracker::add_reserved_region(unsigned char*, unsigned long, NativeCallStack const&, MemTag)+0x6e (vmatree.hpp:298)
      V [libjvm.so+0x1619322] ThreadStackTracker::new_thread_stack(void*, unsigned long, NativeCallStack const&)+0x62 (threadStackTracker.cpp:54)
      V [libjvm.so+0x160ab65] Thread::call_run()+0x45 (memTracker.hpp:241)
      V [libjvm.so+0x13096f6] thread_native_entry(Thread*)+0x126 (os_linux.cpp:868)

      siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x000000000000002c

      Registers:
      RAX=0x0000000000000000, RBX=0x00007f8ce9dbb320, RCX=0x00007f8ce9dbb290, RDX=0x00007f8ce9dbb320
      RSP=0x00007f8ce9dbb150, RBP=0x00007f8ce9dbb1c0, RSI=0x0000000000000000, RDI=0x00007f8d0c1a04f0
      R8 =0x00007f8ce9dbb360, R9 =0x00007f8ce9dbb2b0, R10=0x0000000000000000, R11=0x00007f8ce9dbb290
      R12=0x00007f8ce9dbb250, R13=0x0000000000000000, R14=0x0000000000000000, R15=0x0000000000000000
      RIP=0x00007f8d0b6bb15a, EFLAGS=0x0000000000010206, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
        TRAPNO=0x000000000000000e

            jsjolen Johan Sjölen
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: