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

C2: removal of a Mod[DF]Node crashes when the node is already dead

XMLWordPrintable

    • master

      java -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xcomp -XX:StressSeed=22472710 -XX:+StressIGVN -XX:+UnlockExperimentalVMOptions Test_4151.java

      Test applications/javafuzzer/JF_5000Tests.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/d4bd67c3-e9b9-4d9e-aa82-81f76e98a579-S75/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d6064c34-08e6-46fe-ab9d-17c172fccdb6/runs/2ca26484-8ebc-4391-896d-c3aa1a5e159d/workspace/open/src/hotspot/share/opto/callnode.cpp:986), pid=1395464, tid=1395491
      # assert(projs->fallthrough_proj != nullptr) failed: must be found
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+17) (fastdebug build 25-ea+17-LTS-1866)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+17-LTS-1866, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x769ca0] CallNode::extract_projections(CallProjections*, bool, bool)+0x8b0
      #
      # 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/e32bbe1d-e945-4ded-9d0a-e114d727b0db-S4395/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/06e838a2-3a67-4493-9f84-c8b7cce5caef/runs/a07ff8ae-a01f-4c60-aacc-02d75f1a72ae/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_javafuzzer_JF_5000Tests_java/scratch/0/generated/javafuzzer_tests/core.1395464)
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

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

      Command Line: -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xcomp -XX:+UnlockDiagnosticVMOptions -XX:StressSeed=22472710 -XX:+UnlockDiagnosticVMOptions -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:+StressMacroExpansion -XX:+UnlockExperimentalVMOptions -XX:PerMethodSpecTrapLimit=0 -XX:PerMethodTrapLimit=0 -XX:+VerifyLoopOptimizations -XX:VerifyIterativeGVN=10 Test_4151

      Host: AArch64, 8 cores, 30G, Oracle Linux Server release 9.4
      Time: Sun Mar 30 17:57:11 2025 UTC elapsed time: 0.225851 seconds (0d 0h 0m 0s)

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

      Current thread (0x0000ffffa02630f0): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=1395491, stack(0x0000ffff900ae000,0x0000ffff902ac000) (2040K)]


      Current CompileTask:
      C2:225 5 b Test_4151::mainTest (771 bytes)

      Stack: [0x0000ffff900ae000,0x0000ffff902ac000], sp=0x0000ffff902a6910, free space=2018k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x769ca0] CallNode::extract_projections(CallProjections*, bool, bool)+0x8b0 (callnode.cpp:986)
      V [libjvm.so+0xa7d614] ModFloatingNode::replace_with_con(PhaseIterGVN*, Type const*)+0x60 (divnode.cpp:1620)
      V [libjvm.so+0x147c7bc] PhaseIterGVN::transform_old(Node*)+0xe8 (phaseX.cpp:668)
      V [libjvm.so+0x1472ed0] PhaseIterGVN::optimize()+0xc0 (phaseX.cpp:1046)
      V [libjvm.so+0x908818] Compile::Optimize()+0x248 (compile.cpp:2295)
      V [libjvm.so+0x90b5e0] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x164c (compile.cpp:860)
      V [libjvm.so+0x755e84] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x2c0 (c2compiler.cpp:141)
      V [libjvm.so+0x919cb4] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x990 (compileBroker.cpp:2307)
      V [libjvm.so+0x91a96c] CompileBroker::compiler_thread_loop()+0x608 (compileBroker.cpp:1951)
      V [libjvm.so+0xddc018] JavaThread::thread_main_inner()+0x104 (javaThread.cpp:776)
      V [libjvm.so+0x16e4f40] Thread::call_run()+0xac (thread.cpp:231)
      V [libjvm.so+0x13f76f4] thread_native_entry(Thread*)+0x130 (os_linux.cpp:877)

        1. Test_4151.java
          10 kB
        2. step3.png
          step3.png
          56 kB
        3. step2.png
          step2.png
          105 kB
        4. step1.png
          step1.png
          150 kB
        5. Reduced.java
          0.6 kB
        6. FuzzerUtils.java
          13 kB

            mchevalier Marc Chevalier
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: