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

C2: assert(stride_con != 0) failed: missed some peephole opt

    XMLWordPrintable

Details

    • b24

    Backports

      Description

        Crash happened when run the following test

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/data/openjdk/jdk_dev/src/hotspot/share/opto/loopnode.cpp:780), pid=23848, tid=23868
        # assert(stride_con != 0) failed: missed some peephole opt
        #
        # JRE version: OpenJDK Runtime Environment (18.0) (slowdebug build 18-internal+0-adhoc.root.jdkdev)
        # Java VM: OpenJDK 64-Bit Server VM (slowdebug 18-internal+0-adhoc.root.jdkdev, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0xe02fd7] PhaseIdealLoop::transform_long_counted_loop(IdealLoopTree*, Node_List&)+0x103
        #
        # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
        #
        # 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: Test

        Host: VM_235_31_centos, AMD EPYC 7K62 48-Core Processor, 16 cores, 31G, CentOS Linux release 7.2 (Final)
        Time: Mon Oct 25 15:01:23 2021 CST elapsed time: 1.117192 seconds (0d 0h 0m 1s)

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

        Current thread (0x00007fce3c04f3c0): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=23868, stack(0x00007fce7e5cb000,0x00007fce7e6cc000)]


        Current CompileTask:
        C2: 1117 373 % 4 Test::lMeth @ 168 (358 bytes)

        Stack: [0x00007fce7e5cb000,0x00007fce7e6cc000], sp=0x00007fce7e6c5ef0, free space=1003k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0xe02fd7] PhaseIdealLoop::transform_long_counted_loop(IdealLoopTree*, Node_List&)+0x103
        V [libjvm.so+0xe11e57] PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0x152d
        V [libjvm.so+0x7ce5da] PhaseIdealLoop::PhaseIdealLoop(PhaseIterGVN&, LoopOptsMode)+0xf4
        V [libjvm.so+0x7ce7cc] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x46
        V [libjvm.so+0x7c2595] Compile::Optimize()+0xb95
        V [libjvm.so+0x7bb86a] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, bool, DirectiveSet*)+0x142c
        V [libjvm.so+0x6afe8c] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x138
        V [libjvm.so+0x7d8d18] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x97e
        V [libjvm.so+0x7d78ab] CompileBroker::compiler_thread_loop()+0x3df
        V [libjvm.so+0x7f7e45] CompilerThread::thread_entry(JavaThread*, JavaThread*)+0x69
        V [libjvm.so+0x1249f3f] JavaThread::thread_main_inner()+0x15f
        V [libjvm.so+0x1249dd6] JavaThread::run()+0x1fc
        V [libjvm.so+0x1247636] Thread::call_run()+0x180
        V [libjvm.so+0xfadbd5] thread_native_entry(Thread*)+0x18f

        Attachments

          1. hs_err_pid20909.log
            66 kB
          2. hs_err_pid23848.log
            70 kB
          3. Test.java
            6 kB

          Issue Links

            Activity

              People

                wchao Wang Chao
                wchao Wang Chao
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: