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

C2: assert(u->find_out_with(Op_AddP) == nullptr) failed: more than 2 chained AddP nodes?

XMLWordPrintable

    • b14

        The attached Java Fuzzer test starts to fail after JDK-8303466 (seems unrelated and must have just revealed an existing issue):

        To reproduce:

        $ java -Xcomp -XX:-TieredCompilation -XX:CompileCommand=compileonly,Test::* Test.java
        $ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Reduced::test Reduced.java

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S141865/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8a11c2a6-dc3b-42a8-a1bf-5f4afa468e45/runs/9fc53209-cfb4-45ef-bad1-2b89080d866c/workspace/open/src/hotspot/share/opto/loopopts.cpp:1714), pid=3134144, tid=3134158
        # assert(u->find_out_with(Op_AddP) == nullptr) failed: more than 2 chained AddP nodes?
        #
        # JRE version: Java(TM) SE Runtime Environment (22.0) (fastdebug build 22-internal-2023-08-25-1459578.christian.hagedorn.jdk)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 22-internal-2023-08-25-1459578.christian.hagedorn.jdk, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x12aeb03] PhaseIdealLoop::try_sink_out_of_loop(Node*)+0xc53
        ..........
        Command Line: -XX:CompileCommand=quiet -XX:-TieredCompilation -Xcomp -XX:CompileOnly=Test::* Test
        ..........
        Current CompileTask:
        C2: 234 6 !b Test::lMeth1 (341 bytes)

        Stack: [0x00007f76cd233000,0x00007f76cd333000], sp=0x00007f76cd32dc10, free space=1003k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x12aeb03] PhaseIdealLoop::try_sink_out_of_loop(Node*)+0xc53 (loopopts.cpp:1714)
        V [libjvm.so+0x12aed57] PhaseIdealLoop::split_if_with_blocks_post(Node*)+0xe7
        V [libjvm.so+0x12af677] PhaseIdealLoop::split_if_with_blocks(VectorSet&, Node_Stack&)+0x97
        V [libjvm.so+0x12a34ef] PhaseIdealLoop::build_and_optimize()+0xf9f
        V [libjvm.so+0x9ef5d9] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x3b9
        V [libjvm.so+0x9eab1f] Compile::Optimize()+0xdaf
        V [libjvm.so+0x9ee3a0] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1bb0
        V [libjvm.so+0x84949b] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x13b
        V [libjvm.so+0x9fa2b7] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x977
        V [libjvm.so+0x9faff8] CompileBroker::compiler_thread_loop()+0x5f8
        V [libjvm.so+0xeb65cc] JavaThread::thread_main_inner()+0xcc
        V [libjvm.so+0x17a09fa] Thread::call_run()+0xba
        V [libjvm.so+0x149fe9a] thread_native_entry(Thread*)+0x12a

          1. FuzzerUtils.java
            13 kB
          2. hs_err_pid3134144.log
            63 kB
          3. Reduced.java
            0.7 kB
          4. Test.java
            12 kB

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

                Created:
                Updated:
                Resolved: