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

C2: assert(found_sfpt) failed: no node in loop that's not input to safepoint


    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 10, 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:



        C2 fails to compile example with
        # A fatal error has been detected by the Java Runtime Environment:
        # Internal Error (/scratch/opt/mach5/mesos/work_dir/slaves/9190d864-6621-4810-ba08-d8d8c75ba674-S395/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b528528e-501d-44e6-b294-995b8b2b1881/runs/3f528bbf-2970-4319-80de-390e34a632b0/workspace/open/src/hotspot/share/opto/loopnode.cpp:916), pid=23044, tid=23055
        # assert(found_sfpt) failed: no node in loop that's not input to safepoint
        # JRE version: Java(TM) SE Runtime Environment (11.0+7) (fastdebug build 11-ea+7)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 11-ea+7, compiled mode, compressed oops, g1 gc, linux-amd64)
        # Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /tmp/fuzzer.tmp.XWph5hV3Hg/core.23044)
        # If you would like to submit a bug report, please visit:
        # http://bugreport.java.com/bugreport/crash.jsp

        --------------- S U M M A R Y ------------

        Command Line: -Xmx1G -Xcomp -Xbatch -XX:-TieredCompilation -XX:CompileOnly= Test

        Host: slc16ijb, Intel Core Processor (Haswell, no TSX), 4 cores, 14G, Oracle Linux Server release 7.4
        Time: Mon Apr 30 18:17:45 2018 PDT elapsed time: 7 seconds (0d 0h 0m 7s)

        --------------- T H R E A D ---------------

        Current thread (0x00007f5a40267000): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=23055, stack(0x00007f5a306ba000,0x00007f5a307bb000)]

        Current CompileTask:
        C2: 7175 1364 b Test::lMeth (290 bytes)

        Stack: [0x00007f5a306ba000,0x00007f5a307bb000], sp=0x00007f5a307b4eb0, free space=1003k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x180fd12] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x162
        V [libjvm.so+0x1810baf] VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
        V [libjvm.so+0xb28abd] report_vm_error(char const*, int, char const*, char const*, ...)+0xdd
        V [libjvm.so+0x1250690] LoopNode::verify_strip_mined(int) const+0x6b0
        V [libjvm.so+0x1250c81] CountedLoopNode::skip_strip_mined(int)+0x21
        V [libjvm.so+0x122f05e] PhaseIdealLoop::loop_predication_impl(IdealLoopTree*) [clone .part.79]+0x15e
        V [libjvm.so+0x1230ceb] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x20b
        V [libjvm.so+0x1230b07] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x27
        V [libjvm.so+0x1230b07] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x27
        V [libjvm.so+0x1230b26] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x46
        V [libjvm.so+0x1265405] PhaseIdealLoop::build_and_optimize(bool, bool)+0xf65
        V [libjvm.so+0xa8d6fd] Compile::Optimize()+0x4ad
        V [libjvm.so+0xa8f4ee] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x124e
        V [libjvm.so+0x8b27d2] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x2e2
        V [libjvm.so+0xa99d48] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3b8
        V [libjvm.so+0xa9a9d1] CompileBroker::compiler_thread_loop()+0x281
        V [libjvm.so+0x17635f2] JavaThread::thread_main_inner()+0x242
        V [libjvm.so+0x17637f4] JavaThread::run()+0x144
        V [libjvm.so+0x1495212] thread_native_entry(Thread*)+0x112


          1. FuzzerUtils.java
            13 kB
          2. hs_err_pid23044.log
            59 kB
          3. Test.java
            9 kB

            Issue Links



                • Assignee:
                  roland Roland Westrelin
                  lmesnik Leonid Mesnik
                • Votes:
                  0 Vote for this issue
                  3 Start watching this issue


                  • Created: