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

assert(outer->outcnt() == 2) failed: 'only phis' failure in LoopNode::verify_strip_mined()

XMLWordPrintable

    • b29

        Attached javafuzzer test fails with -
        (attached hs_err log)

        $ javac *.java
        $ java -Xmx1G -Xcomp -Xbatch -XX:CompileOnly=Test Test

        # Internal Error (..../open/src/hotspot/share/opto/loopnode.cpp:1108), pid=13001, tid=13013
        # assert(outer->outcnt() == 2) failed: only phis
        #
        # JRE version: Java(TM) SE Runtime Environment (15.0+25) (fastdebug build 15-ea+25-1229)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 15-ea+25-1229, compiled mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x114e4c5] LoopNode::verify_strip_mined(int) const+0xdd5
        .............
        Command Line: -Xmx1G -Xcomp -Xbatch -XX:CompileOnly=Test Test
        ..........
        Current thread (0x00007f0d94496440): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=13013, stack(0x00007f0d6a4ce000,0x00007f0d6a5cf000)]


        Current CompileTask:
        C2: 32894 66 !b 4 Test::mainTest (625 bytes)

        Stack: [0x00007f0d6a4ce000,0x00007f0d6a5cf000], sp=0x00007f0d6a5c9210, free space=1004k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x114e4c5] LoopNode::verify_strip_mined(int) const+0xdd5
        V [libjvm.so+0x114e6d7] CountedLoopNode::skip_strip_mined(int)+0x47
        V [libjvm.so+0x113b4aa] PhaseIdealLoop::do_unroll(IdealLoopTree*, Node_List&, bool)+0x10a
        V [libjvm.so+0x11416e3] IdealLoopTree::iteration_split_impl(PhaseIdealLoop*, Node_List&) [clone .part.0]+0x353
        V [libjvm.so+0x1141a7b] IdealLoopTree::iteration_split(PhaseIdealLoop*, Node_List&)+0x14b
        V [libjvm.so+0x1141956] IdealLoopTree::iteration_split(PhaseIdealLoop*, Node_List&)+0x26
        V [libjvm.so+0x114199a] IdealLoopTree::iteration_split(PhaseIdealLoop*, Node_List&)+0x6a
        V [libjvm.so+0x1141956] IdealLoopTree::iteration_split(PhaseIdealLoop*, Node_List&)+0x26
        V [libjvm.so+0x1169a0d] PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0xd3d
        V [libjvm.so+0x902eae] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x31e
        V [libjvm.so+0x900230] Compile::Optimize()+0xd70
        V [libjvm.so+0x901d7c] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x15bc
        V [libjvm.so+0x74f115] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x175
        V [libjvm.so+0x91061e] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x45e
        V [libjvm.so+0x911cb8] CompileBroker::compiler_thread_loop()+0x6b8
        V [libjvm.so+0x1696f4c] JavaThread::thread_main_inner()+0x21c
        V [libjvm.so+0x169cd70] Thread::call_run()+0x100
        V [libjvm.so+0x13a2296] thread_native_entry(Thread*)+0x116

          1. FuzzerUtils.java
            13 kB
          2. Test.java
            8 kB
          3. hs_err_pid13001.log
            176 kB
          4. replay_pid13001.log
            149 kB

              roland Roland Westrelin
              rraghavan Rahul Raghavan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: