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

C2 compilation fails with assert "not a range check?"

    XMLWordPrintable

    Details

      Description

      Executing vmTestbase/jit/t/t105/t105.java with the following arguments:

      -XX:+TieredCompilation
      -XX:Tier0BackedgeNotifyFreqLog=0
      -XX:Tier2BackedgeNotifyFreqLog=0
      -XX:Tier3BackedgeNotifyFreqLog=0
      -XX:Tier2BackEdgeThreshold=1
      -XX:Tier3BackEdgeThreshold=1
      -XX:Tier4BackEdgeThreshold=1
      -Xbatch

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/workspace/open/src/hotspot/share/opto/loopPredicate.cpp:1254), pid=17531, tid=17559
      # assert(proj->_con && predicate_proj->_con) failed: not a range check?
      #
      # JRE version: Java(TM) SE Runtime Environment (18.0) (fastdebug build 18-internal+0-2021-09-02-0844081.tobias.hartmann.jdk)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-internal+0-2021-09-02-0844081.tobias.hartmann.jdk, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x12afc0c] PhaseIdealLoop::insert_initial_skeleton_predicate(IfNode*, IdealLoopTree*, ProjNode*, ProjNode*, ProjNode*, int, Node*, Node*, Node*, int, Node*, bool&, Deoptimization::DeoptReason)+0x4ac
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/scratch/5/core.17531)
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp

      Current CompileTask:
      C2: 7266 666 !b 4 jit.t.t105.t105::main (54 bytes)

      Stack: [0x00007fe39dcfd000,0x00007fe39ddfe000], sp=0x00007fe39ddf7e70, free space=1003k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x12afc0c] PhaseIdealLoop::insert_initial_skeleton_predicate(IfNode*, IdealLoopTree*, ProjNode*, ProjNode*, ProjNode*, int, Node*, Node*, Node*, int, Node*, bool&, Deoptimization::DeoptReason)+0x4ac
      V [libjvm.so+0x12b1593] PhaseIdealLoop::loop_predication_impl_helper(IdealLoopTree*, ProjNode*, ProjNode*, CountedLoopNode*, ConNode*, Invariance&, Deoptimization::DeoptReason)+0x1153
      V [libjvm.so+0x12b2428] PhaseIdealLoop::loop_predication_impl(IdealLoopTree*) [clone .part.0]+0x548
      V [libjvm.so+0x12b3119] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x109
      V [libjvm.so+0x12f9edf] PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0x11cf
      V [libjvm.so+0xa0aa6a] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x28a
      V [libjvm.so+0xa0646a] Compile::Optimize()+0x4aa
      V [libjvm.so+0xa08f68] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, bool, DirectiveSet*)+0x1588
      V [libjvm.so+0x81d476] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x646
      V [libjvm.so+0xa191c1] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xd31
      V [libjvm.so+0xa19ef8] CompileBroker::compiler_thread_loop()+0x598
      V [libjvm.so+0x188e71c] JavaThread::thread_main_inner()+0x27c
      V [libjvm.so+0x1894d10] Thread::call_run()+0x100
      V [libjvm.so+0x1572d34] thread_native_entry(Thread*)+0x104

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              neliasso Nils Eliasson
              Reporter:
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: