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

C2 crash: assert(bol->Opcode() == Op_Bool) failed: Unexpected node

XMLWordPrintable

    • 25
    • x86_64, aarch64

      Reproduces with attached Test.java and
      "java -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xcomp -XX:PerMethodTrapLimit=0 Test.java"

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S717/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e54e3118-c337-42cd-9cb3-3adabc8d8136/runs/fa08aad9-3748-4d75-8573-8480b07beb93/workspace/open/src/hotspot/share/opto/loopopts.cpp:794), pid=3514564, tid=3514595
      # assert(bol->Opcode() == Op_Bool) failed: Unexpected node
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+12) (fastdebug build 25-ea+12-LTS-1321)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+12-LTS-1321, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x116e160] PhaseIdealLoop::conditional_move(Node*)+0xd80
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /tmp/fuzzer.tmp.3JDo0h0ZW5/core.3514564)
      #
      # 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: -XX:+UnlockDiagnosticVMOptions -XX:RepeatCompilation=50 -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:+StressMacroExpansion -XX:+UnlockExperimentalVMOptions -XX:PerMethodSpecTrapLimit=0 -XX:PerMethodTrapLimit=0 -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/23/37/bundles/linux-aarch64/jdk-23_linux-aarch64_bin.tar.gz/jdk-23 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/e32bbe1d-e945-4ded-9d0a-e114d727b0db-S4439/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f04d0b70-9a57-4137-a5b9-77431e550833/runs/efeafda1-0e6e-4af0-a88a-5017c2facc6c/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_javafuzzer_LongRunningTests_java/tmp Test

      Host: AArch64, 8 cores, 30G, Oracle Linux Server release 9.4
      Time: Sun Mar 2 00:10:30 2025 UTC elapsed time: 1.014406 seconds (0d 0h 0m 1s)

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

      Current thread (0x0000ffff98257db0): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=3514595, stack(0x0000ffff7cf1f000,0x0000ffff7d11d000) (2040K)]


      Current CompileTask:
      C2:1014 4 b Test::vMeth2 (232 bytes)

      Stack: [0x0000ffff7cf1f000,0x0000ffff7d11d000], sp=0x0000ffff7d117560, free space=2017k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x116e160] PhaseIdealLoop::conditional_move(Node*)+0xd80 (loopopts.cpp:794)
      V [libjvm.so+0x116ec68] PhaseIdealLoop::split_if_with_blocks_pre(Node*)+0x274 (loopopts.cpp:1128)
      V [libjvm.so+0x11739cc] PhaseIdealLoop::split_if_with_blocks(VectorSet&, Node_Stack&)+0x1fc (loopopts.cpp:1981)
      V [libjvm.so+0x1165518] PhaseIdealLoop::build_and_optimize()+0xf48 (loopnode.cpp:4904)
      V [libjvm.so+0x8f4a78] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x2e8 (loopnode.hpp:1154)
      V [libjvm.so+0x8edfc8] Compile::optimize_loops(PhaseIterGVN&, LoopOptsMode)+0x58 (compile.cpp:2173)
      V [libjvm.so+0x8eeaf8] Compile::Optimize()+0x874 (compile.cpp:2418)
      V [libjvm.so+0x8f1ee8] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x14b8 (compile.cpp:848)
      V [libjvm.so+0x747a00] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x17c (c2compiler.cpp:141)
      V [libjvm.so+0x8fec3c] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x8cc (compileBroker.cpp:2338)
      V [libjvm.so+0x8ff7fc] CompileBroker::compiler_thread_loop()+0x58c (compileBroker.cpp:1975)
      V [libjvm.so+0xd7b9e4] JavaThread::thread_main_inner()+0xe4 (javaThread.cpp:776)
      V [libjvm.so+0x1627b30] Thread::call_run()+0xac (thread.cpp:231)
      V [libjvm.so+0x135a0a4] thread_native_entry(Thread*)+0x130 (os_linux.cpp:877)
      C [libc.so.6+0x806d8] start_thread+0x2d8

        1. FuzzerUtils.java
          13 kB
        2. Test.java
          7 kB
        3. TestSimple.java
          0.6 kB

            epeter Emanuel Peter
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: