C2 compilation asserts with "slice of address and input slice don't match"

XMLWordPrintable

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (workspace/open/src/hotspot/share/opto/parse3.cpp:133), pid=1484353, tid=1484371
      # assert(C->get_alias_index(adr_type) == C->get_alias_index(_gvn.type(adr)->isa_ptr())) failed: slice of address and input slice don't match
      #
      # JRE version: Java(TM) SE Runtime Environment (27.0+4) (fastdebug build 27-ea+4-323)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-ea+4-323, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x15c27c8] Parse::do_get_xxx(Node*, ciField*, bool)+0x4fc
      #

      Current CompileTask:
      C2:31838 3728 b jdk.jpackage.internal.cli.StandardHelpFormatter$1::compare (52 bytes)

      Stack: [0x0000ffff59bf4000,0x0000ffff59df2000], sp=0x0000ffff59dec0e0, free space=2016k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x15c27c8] Parse::do_get_xxx(Node*, ciField*, bool)+0x4fc (parse3.cpp:133)
      V [libjvm.so+0x15c40e0] Parse::do_field_access(bool, bool)+0x610 (parse3.cpp:90)
      V [libjvm.so+0x15bff40] Parse::do_one_bytecode()+0x2dc0 (parse.hpp:535)
      V [libjvm.so+0x15ab1e8] Parse::do_one_block()+0x224 (parse1.cpp:1593)
      V [libjvm.so+0x15ac5ac] Parse::do_all_blocks()+0x13c (parse1.cpp:724)
      V [libjvm.so+0x15af9a4] Parse::Parse(JVMState*, ciMethod*, float)+0x9e0 (parse1.cpp:628)
      V [libjvm.so+0x817ff8] ParseGenerator::generate(JVMState*)+0xe8 (callGenerator.cpp:97)
      V [libjvm.so+0x81c25c] PredictedCallGenerator::generate(JVMState*)+0x3dc (callGenerator.cpp:914)
      V [libjvm.so+0x81e158] CallGenerator::do_late_inline_helper()+0x8d8 (callGenerator.cpp:675)
      V [libjvm.so+0x9e824c] Compile::inline_incrementally_one()+0x19c (compile.cpp:2119)
      V [libjvm.so+0x9e9748] Compile::inline_incrementally(PhaseIterGVN&)+0x368 (compile.cpp:2212)
      V [libjvm.so+0x9eb7e4] Compile::Optimize()+0x364 (compile.cpp:2344)
      V [libjvm.so+0x9ee4cc] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x16a0 (compile.cpp:862)
      V [libjvm.so+0x815978] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x2d4 (c2compiler.cpp:147)
      V [libjvm.so+0x9fd24c] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb08 (compileBroker.cpp:2345)
      V [libjvm.so+0x9fe178] CompileBroker::compiler_thread_loop()+0x638 (compileBroker.cpp:1989)
      V [libjvm.so+0xf08488] JavaThread::thread_main_inner()+0x108 (javaThread.cpp:776)
      V [libjvm.so+0x1890c2c] Thread::call_run()+0xac (thread.cpp:242)
      V [libjvm.so+0x155ebbc] thread_native_entry(Thread*)+0x11c (os_linux.cpp:860)
      C [libc.so.6+0x80b50] start_thread+0x300

            Assignee:
            Unassigned
            Reporter:
            Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: