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

[lworld] C2 compilation fails with "Bad graph detected in build_loop_late"

XMLWordPrintable

      With the patch for JDK-8271959, some of the java/foreign/ tests fail with:

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/oracle/valhalla3/open/src/hotspot/share/opto/loopnode.cpp:5343), pid=651209, tid=651245
      # assert(false) failed: Bad graph detected in build_loop_late
      #
      # JRE version: Java(TM) SE Runtime Environment (18.0) (fastdebug build 18-lworld3ea+0-2021-07-08-0750194.tobias...)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-lworld3ea+0-2021-07-08-0750194.tobias..., mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x138f93b] PhaseIdealLoop::build_loop_late_post_work(Node*, bool)+0x18b
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /oracle/valhalla3/JTwork/scratch/core.651209)
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      Current CompileTask:
      C2: 8110 4560 4 java.lang.invoke.LambdaFormEditor::bindArgumentForm (269 bytes)

      Stack: [0x00007f0dc1eff000,0x00007f0dc2000000], sp=0x00007f0dc1ffa1f0, free space=1004k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x138f93b] PhaseIdealLoop::build_loop_late_post_work(Node*, bool)+0x18b
      V [libjvm.so+0x138ff5a] PhaseIdealLoop::build_loop_late(VectorSet&, Node_List&, Node_Stack&)+0xba
      V [libjvm.so+0x13908c7] PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0x507
      V [libjvm.so+0xa5a257] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x287
      V [libjvm.so+0xa56be4] Compile::Optimize()+0x1434
      V [libjvm.so+0xa58830] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, bool, DirectiveSet*)+0x1630
      V [libjvm.so+0x841d80] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x6a0
      V [libjvm.so+0xa686d1] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb71
      V [libjvm.so+0xa69368] CompileBroker::compiler_thread_loop()+0x598
      V [libjvm.so+0x196991c] JavaThread::thread_main_inner()+0x27c
      V [libjvm.so+0x196ff60] Thread::call_run()+0x100
      V [libjvm.so+0x16205b4] thread_native_entry(Thread*)+0x104

        1. hs_err_pid683256.log
          134 kB
          Tobias Hartmann
        2. replay_pid683256.log
          187 kB
          Tobias Hartmann

            thartmann Tobias Hartmann
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: