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

C2: assert(alias_idx >= Compile::AliasIdxRaw) failed: must not disturb base_memory or sentinel

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 18
    • hotspot

      Run arbitrary program with -XX:+VerifyAliases, VM crashes at verify_memory_slice

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/qingfeng.yy/jdktip/src/hotspot/share/opto/memnode.cpp:4932), pid=107349, tid=108149
      # assert(alias_idx >= Compile::AliasIdxRaw) failed: must not disturb base_memory or sentinel
      #
      # JRE version: OpenJDK Runtime Environment (18.0) (slowdebug build 18-internal+0-adhoc.qingfengyy.jdktip)
      # Java VM: OpenJDK 64-Bit Server VM (slowdebug 18-internal+0-adhoc.qingfengyy.jdktip, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xeecdd9] verify_memory_slice(MergeMemNode const*, int, Node*)+0x52
      #
      # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # 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 ------------

      Command Line: -XX:-BackgroundCompilation -XX:+VerifyAliases -XX:CompileCommand=compileonly,Reduced::test -XX:-TieredCompilation Reduced

      Host: e69e13043.et15sqa, Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz, 96 cores, 503G, Alibaba Group Enterprise Linux Server release 7.2 (Paladin)
      Time: Wed Aug 18 10:42:35 2021 CST elapsed time: 1.793576 seconds (0d 0h 0m 1s)

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

      Current thread (0x00007ffff02d30d0): JavaThread "C2 CompilerThread0" daemon [_thread_in_vm, id=108149, stack(0x00007fff869fa000,0x00007fff86afb000)]

      Stack: [0x00007fff869fa000,0x00007fff86afb000], sp=0x00007fff86af7f60, free space=1015k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xeecdd9] verify_memory_slice(MergeMemNode const*, int, Node*)+0x52
      V [libjvm.so+0xeed290] MergeMemNode::set_memory_at(unsigned int, Node*)+0x28
      V [libjvm.so+0x57cfed] GraphKit::set_memory(Node*, unsigned int)+0x33
      V [libjvm.so+0xa605b7] GraphKit::store_to_memory(Node*, Node*, Node*, BasicType, int, MemNode::MemOrd, bool, bool, bool, bool)+0x1d7
      V [libjvm.so+0xa55966] GraphKit::gen_stub(unsigned char*, char const*, int, bool, bool)+0x4ec
      V [libjvm.so+0x7c4dc6] Compile::Compile(ciEnv*, TypeFunc const* (*)(), unsigned char*, char const*, int, bool, bool, DirectiveSet*)+0x79a
      V [libjvm.so+0x1093314] OptoRuntime::generate_stub(ciEnv*, TypeFunc const* (*)(), unsigned char*, char const*, int, bool, bool)+0xba
      V [libjvm.so+0x1092df4] OptoRuntime::generate(ciEnv*)+0x44
      V [libjvm.so+0x6b097f] C2Compiler::init_c2_runtime()+0xcd
      V [libjvm.so+0x6b09f8] C2Compiler::initialize()+0x60
      V [libjvm.so+0x7dfc38] CompileBroker::init_compiler_runtime()+0xee
      V [libjvm.so+0x7e017c] CompileBroker::compiler_thread_loop()+0x15c
      V [libjvm.so+0x800ac3] CompilerThread::thread_entry(JavaThread*, JavaThread*)+0x69
      V [libjvm.so+0x12755e7] JavaThread::thread_main_inner()+0x15d
      V [libjvm.so+0x1275482] JavaThread::run()+0x11e
      V [libjvm.so+0x1272dd4] Thread::call_run()+0x180
      V [libjvm.so+0xfbaf91] thread_native_entry(Thread*)+0x18f

          Loading...
          Uploaded image for project: 'JDK'
          1. JDK
          2. JDK-8272610

          C2: assert(alias_idx >= Compile::AliasIdxRaw) failed: must not disturb base_memory or sentinel

            • Icon: Bug Bug
            • Resolution: Duplicate
            • Icon: P3 P3
            • None
            • 18
            • hotspot

              Run arbitrary program with -XX:+VerifyAliases, VM crashes at verify_memory_slice

              #
              # A fatal error has been detected by the Java Runtime Environment:
              #
              # Internal Error (/home/qingfeng.yy/jdktip/src/hotspot/share/opto/memnode.cpp:4932), pid=107349, tid=108149
              # assert(alias_idx >= Compile::AliasIdxRaw) failed: must not disturb base_memory or sentinel
              #
              # JRE version: OpenJDK Runtime Environment (18.0) (slowdebug build 18-internal+0-adhoc.qingfengyy.jdktip)
              # Java VM: OpenJDK 64-Bit Server VM (slowdebug 18-internal+0-adhoc.qingfengyy.jdktip, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
              # Problematic frame:
              # V [libjvm.so+0xeecdd9] verify_memory_slice(MergeMemNode const*, int, Node*)+0x52
              #
              # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
              #
              # 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 ------------

              Command Line: -XX:-BackgroundCompilation -XX:+VerifyAliases -XX:CompileCommand=compileonly,Reduced::test -XX:-TieredCompilation Reduced

              Host: e69e13043.et15sqa, Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz, 96 cores, 503G, Alibaba Group Enterprise Linux Server release 7.2 (Paladin)
              Time: Wed Aug 18 10:42:35 2021 CST elapsed time: 1.793576 seconds (0d 0h 0m 1s)

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

              Current thread (0x00007ffff02d30d0): JavaThread "C2 CompilerThread0" daemon [_thread_in_vm, id=108149, stack(0x00007fff869fa000,0x00007fff86afb000)]

              Stack: [0x00007fff869fa000,0x00007fff86afb000], sp=0x00007fff86af7f60, free space=1015k
              Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
              V [libjvm.so+0xeecdd9] verify_memory_slice(MergeMemNode const*, int, Node*)+0x52
              V [libjvm.so+0xeed290] MergeMemNode::set_memory_at(unsigned int, Node*)+0x28
              V [libjvm.so+0x57cfed] GraphKit::set_memory(Node*, unsigned int)+0x33
              V [libjvm.so+0xa605b7] GraphKit::store_to_memory(Node*, Node*, Node*, BasicType, int, MemNode::MemOrd, bool, bool, bool, bool)+0x1d7
              V [libjvm.so+0xa55966] GraphKit::gen_stub(unsigned char*, char const*, int, bool, bool)+0x4ec
              V [libjvm.so+0x7c4dc6] Compile::Compile(ciEnv*, TypeFunc const* (*)(), unsigned char*, char const*, int, bool, bool, DirectiveSet*)+0x79a
              V [libjvm.so+0x1093314] OptoRuntime::generate_stub(ciEnv*, TypeFunc const* (*)(), unsigned char*, char const*, int, bool, bool)+0xba
              V [libjvm.so+0x1092df4] OptoRuntime::generate(ciEnv*)+0x44
              V [libjvm.so+0x6b097f] C2Compiler::init_c2_runtime()+0xcd
              V [libjvm.so+0x6b09f8] C2Compiler::initialize()+0x60
              V [libjvm.so+0x7dfc38] CompileBroker::init_compiler_runtime()+0xee
              V [libjvm.so+0x7e017c] CompileBroker::compiler_thread_loop()+0x15c
              V [libjvm.so+0x800ac3] CompilerThread::thread_entry(JavaThread*, JavaThread*)+0x69
              V [libjvm.so+0x12755e7] JavaThread::thread_main_inner()+0x15d
              V [libjvm.so+0x1275482] JavaThread::run()+0x11e
              V [libjvm.so+0x1272dd4] Thread::call_run()+0x180
              V [libjvm.so+0xfbaf91] thread_native_entry(Thread*)+0x18f

                    yyang Yi Yang
                    yyang Yi Yang
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    2 Start watching this issue

                      Created:
                      Updated:
                      Resolved:

                        yyang Yi Yang
                        yyang Yi Yang
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        2 Start watching this issue

                          Created:
                          Updated:
                          Resolved: