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

C2: assert(false) failed: unscheduable graph

    XMLWordPrintable

Details

    • b26
    • 17
    • b30
    • Verified

    Backports

      Description

        The attached Java Fuzzer tests starts to fail after JDK-8267687 with the following assertion failure:

        To reproduce:
        $ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test Test.java
        $ java -Xcomp -XX:-TieredCompilation - XX:CompileOnly=Reduced -XX:CompileCommand=dontinline,Reduced::vMeth Reduced.java

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79067/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/be546687-12db-4ded-a96b-86062b189919/runs/56ca4e2d-638a-4f38-8b25-3d968f5f0d09/workspace/open/src/hotspot/share/opto/gcm.cpp:276), pid=21370, tid=21386
        # assert(false) failed: unscheduable graph
        #
        # JRE version: Java(TM) SE Runtime Environment (17.0+26) (fastdebug build 17-ea+26-LTS-2439)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+26-LTS-2439, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0xd2ccc2] assert_dom(Block*, Block*, Node*, PhaseCFG const*)+0x1b2
        ............
        Command Line: -Xmx1G -Xcomp -Xbatch -XX:-TieredCompilation -XX:CompileOnly=Test -XX:CompileCommand=quiet Test
        ............
        Current thread (0x00007f799047fc30): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=21386, stack(0x00007f79720f8000,0x00007f79721f9000)]


        Current CompileTask:
        C2: 7475 64 !b Test::mainTest (910 bytes)

        Stack: [0x00007f79720f8000,0x00007f79721f9000], sp=0x00007f79721f3cf0, free space=1007k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0xd2ccc2] assert_dom(Block*, Block*, Node*, PhaseCFG const*)+0x1b2
        V [libjvm.so+0xd2e448] PhaseCFG::schedule_early(VectorSet&, Node_Stack&)+0x598
        V [libjvm.so+0xd374c5] PhaseCFG::global_code_motion()+0x295
        V [libjvm.so+0xd3b551] PhaseCFG::do_global_code_motion()+0x51
        V [libjvm.so+0xa1cbf3] Compile::Code_Gen()+0x293
        V [libjvm.so+0xa2818f] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0x164f
        V [libjvm.so+0x84959a] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1ea
        V [libjvm.so+0xa38a89] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xfb9
        V [libjvm.so+0xa397f8] CompileBroker::compiler_thread_loop()+0x5a8
        V [libjvm.so+0x18b2e91] JavaThread::thread_main_inner()+0x271
        V [libjvm.so+0x18baa90] Thread::call_run()+0x100
        V [libjvm.so+0x15872b4] thread_native_entry(Thread*)+0x104

        Attachments

          1. FuzzerUtils.java
            13 kB
          2. Test.java
            10 kB
          3. hs_err_pid21370.log
            176 kB
          4. Reduced.java
            2 kB

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: