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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b26

      Description

      Test case : applications/runthese/RunThese30M.java
      Test suite : JTREG
      OS: History shows only one failure on Linux debug build
      VM Flag used : -XX:+UnlockExperimentalVMOptions -XX:+UseZGC

      VM Crash Trace :

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S77136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/099122e7-097d-4fad-991d-3cace0bd203d/runs/b626b1ce-a46a-4335-ab60-bb9fe12885bd/workspace/open/src/hotspot/share/opto/loopnode.cpp:1000), pid=31609, tid=31634
      # assert(found_sfpt) failed: no node in loop that's not input to safepoint
      #
      # JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.12+1) (fastdebug build 11.0.12-ea+1-LTS-82)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (fastdebug 11.0.12-ea+1-LTS-82, mixed mode, tiered, z gc, linux-amd64)
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S14664/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a5b74640-a2f6-42b4-998e-c1eec7d92889/runs/c5bf8e3b-4ad2-446b-a53a-5cee6d096c4c/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java/scratch/0/core.31609)
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #


      Stack :


      Current CompileTask:
      C2:
      [error occurred during error reporting (printing current compile task), id 0xe0000000, Internal Error (/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S77136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/099122e7-097d-4fad-991d-3cace0bd203d/runs/b626b1ce-a46a-4335-ab60-bb9fe12885bd/workspace/open/src/hotspot/share/runtime/timer.cpp:112)]

      Stack: [0x00007f596dbee000,0x00007f596dcef000], sp=0x00007f596dce6fa0, free space=995k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x18e5463] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x353
      V [libjvm.so+0x18e62af] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
      V [libjvm.so+0xb1f070] report_vm_error(char const*, int, char const*, char const*, ...)+0x100
      V [libjvm.so+0x183f5d7] TimeStamp::milliseconds() const+0x87
      V [libjvm.so+0xa55371] CompileTask::print_line_on_error(outputStream*, char*, int)+0x81
      V [libjvm.so+0x18e1b1d] VMError::report(outputStream*, bool)+0x135d
      V [libjvm.so+0x18e5463] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x353
      V [libjvm.so+0x18e62af] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
      V [libjvm.so+0xb1f070] report_vm_error(char const*, int, char const*, char const*, ...)+0x100
      V [libjvm.so+0xdce68b] HandleArea::allocate_handle(oop)+0x14b
      V [libjvm.so+0x8290dc] Handle::Handle(Thread*, oop)+0xac
      V [libjvm.so+0x98937b] ClassLoaderDataGraph::classes_do(void (*)(Klass*))+0x7b
      V [libjvm.so+0xf65f58] JfrTypeSet::write_klass_constants(JfrCheckpointWriter*, JfrCheckpointWriter*)+0x2a8
      V [libjvm.so+0xf6bd2f] JfrTypeSet::serialize(JfrCheckpointWriter*, JfrCheckpointWriter*, bool)+0x14f
      V [libjvm.so+0xf6069c] TypeSet::serialize(JfrCheckpointWriter&)+0x8c
      V [libjvm.so+0xf6396b] JfrTypeManager::write_type_set()+0x8b
      V [libjvm.so+0xf29589] JfrRecorderService::finalize_current_chunk_on_vm_error()+0x39
      V [libjvm.so+0xf296ee] JfrRecorderService::rotate(int)+0x7e
      V [libjvm.so+0xed6958] JfrEmergencyDump::on_vm_shutdown(bool)+0x278
      V [libjvm.so+0x18e5774] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x664
      V [libjvm.so+0x18e62af] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
      V [libjvm.so+0xb1f070] report_vm_error(char const*, int, char const*, char const*, ...)+0x100
      V [libjvm.so+0x12cab43] LoopNode::verify_strip_mined(int) const+0x653
      V [libjvm.so+0x12cb5a7] CountedLoopNode::skip_strip_mined(int)+0x47
      V [libjvm.so+0x12a410c] PhaseIdealLoop::loop_predication_impl(IdealLoopTree*) [clone .part.101]+0xfc
      V [libjvm.so+0x12a4f2c] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x13c
      V [libjvm.so+0x12a4f55] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x165
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f55] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x165
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12a4f40] IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x150
      V [libjvm.so+0x12e290e] PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0x100e
      V [libjvm.so+0xa4021a] Compile::Optimize()+0xada
      V [libjvm.so+0xa41584] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0xf84
      V [libjvm.so+0x840fd1] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0xe1
      V [libjvm.so+0xa4ebb4] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3f4
      V [libjvm.so+0xa4ff48] CompileBroker::compiler_thread_loop()+0x568
      V [libjvm.so+0x1822cc7] JavaThread::thread_main_inner()+0x2c7
      V [libjvm.so+0x1822fdb] JavaThread::run()+0x20b
      V [libjvm.so+0x181e5ea] Thread::call_run()+0x19a
      V [libjvm.so+0x1528556] thread_native_entry(Thread*)+0x106

        Attachments

        1. FuzzerUtils.java
          13 kB
        2. hs_err_8252372.log
          73 kB
        3. hs_err_pid2611321.log
          66 kB
        4. hs_err_pid27470.log
          178 kB
        5. hs_err_pid31609.log
          1.10 MB
        6. MainClass.java
          0.4 kB
        7. replay_pid2611321.log
          123 kB
        8. replay_pid31609.log
          5.19 MB
        9. Test_8252372.java
          9 kB
        10. Test.java
          6 kB

          Issue Links

            Activity

              People

              Assignee:
              roland Roland Westrelin
              Reporter:
              vaibhav Vaibhav Choudhary
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: