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

C2: assert(false) failed: Bad graph detected in build_loop_late

    XMLWordPrintable

Details

    • b24
    • 17

    Description

      The attached Java Fuzzer test starts to fail after JDK-8252372 with the following assertion:

      To reproduce:

      $ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test Test.java
      $ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Reduced Reduced.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S34703/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/247a8232-5dbb-4725-b447-2bd89d2efd4c/runs/35076a8c-95e7-4b2e-a59b-644c9012a433/workspace/open/src/hotspot/share/opto/loopnode.cpp:5856), pid=25245, tid=25258
      # assert(false) failed: Bad graph detected in build_loop_late
      #
      # JRE version: Java(TM) SE Runtime Environment (20.0+15) (fastdebug build 20-ea+15-1019)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-ea+15-1019, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x14b5f27] PhaseIdealLoop::build_loop_late_post_work(Node*, bool)+0x187
      ............
      Command Line: -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test --add-modules=ALL-DEFAULT jdk.compiler/com.sun.tools.javac.launcher.Main Test.java
      ............
      Current CompileTask:
      C2: 2363 161 !b Test::mainTest (536 bytes)

      Stack: [0x00007f137d147000,0x00007f137d248000], sp=0x00007f137d241ff0, free space=1003k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x14b5f27] PhaseIdealLoop::build_loop_late_post_work(Node*, bool)+0x187 (loopnode.cpp:5856)
      V [libjvm.so+0x14b66e2] PhaseIdealLoop::build_loop_late(VectorSet&, Node_List&, Node_Stack&)+0xb2
      V [libjvm.so+0x14b7058] PhaseIdealLoop::build_and_optimize()+0x4f8
      V [libjvm.so+0xaff221] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x261
      V [libjvm.so+0xafb9f3] Compile::Optimize()+0xe53
      V [libjvm.so+0xafdcad] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x15ad
      V [libjvm.so+0x90e3b5] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x675
      V [libjvm.so+0xb0c1fc] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb1c
      V [libjvm.so+0xb0cfc8] CompileBroker::compiler_thread_loop()+0x5a8
      V [libjvm.so+0x106ca00] JavaThread::thread_main_inner()+0x230
      V [libjvm.so+0x1a6cae0] Thread::call_run()+0x100
      V [libjvm.so+0x1708723] thread_native_entry(Thread*)+0x103

      Attachments

        1. FuzzerUtils.java
          13 kB
        2. hs_err_pid25245.log
          80 kB
        3. Reduced.java
          0.6 kB
        4. Reduced2.java
          0.6 kB
        5. Test.java
          8 kB
        6. Test2.java
          10 kB

        Issue Links

          Activity

            People

              roland Roland Westrelin
              chagedorn Christian Hagedorn
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: