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

C2: crash in PhaseCFG::global_code_motion



    • b12
    • Verified



        Crash happened when run a small test in the attachment

        # A fatal error has been detected by the Java Runtime Environment:
        # SIGSEGV (0xb) at pc=0x00007fa95e1b72a9, pid=29802, tid=29816
        # JRE version: OpenJDK Runtime Environment (18.0) (build 18-internal+0-adhoc.root.jdkdev)
        # Java VM: OpenJDK 64-Bit Server VM (18-internal+0-adhoc.root.jdkdev, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0xa242a9] PhaseCFG::select(Block*, Node_List&, GrowableArray<int>&, VectorSet&, unsigned int, long*)+0x449
        # 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: AMD EPYC 7K62 48-Core Processor, 8 cores, 60000G, CentOS Linux release 7.2 (Final)
        Time: Tue Aug 17 18:59:39 2021 CST elapsed time: 0.139895 seconds (0d 0h 0m 0s)

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

        Current thread (0x00007fa958189850): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=29816, stack(0x00007fa9004f9000,0x00007fa9005fa000)]

        Current CompileTask:
        C2: 139 374 4 Test::foo (38 bytes)

        Stack: [0x00007fa9004f9000,0x00007fa9005fa000], sp=0x00007fa9005f5350, free space=1008k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0xa242a9] PhaseCFG::select(Block*, Node_List&, GrowableArray<int>&, VectorSet&, unsigned int, long*)+0x449
        V [libjvm.so+0xa24e69] PhaseCFG::schedule_local(Block*, GrowableArray<int>&, VectorSet&, long*)+0x8b9
        V [libjvm.so+0x7564a3] PhaseCFG::global_code_motion()+0x5a3
        V [libjvm.so+0x7577fa] PhaseCFG::do_global_code_motion()+0x4a
        V [libjvm.so+0x5961dc] Compile::Code_Gen()+0x29c
        V [libjvm.so+0x59bcc7] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, bool, DirectiveSet*)+0x13c7
        V [libjvm.so+0x4dd001] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x191
        V [libjvm.so+0x5a4468] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xf68
        V [libjvm.so+0x5a5098] CompileBroker::compiler_thread_loop()+0x4a8
        V [libjvm.so+0xdfff60] JavaThread::thread_main_inner()+0x190
        V [libjvm.so+0xe03fee] Thread::call_run()+0xde
        V [libjvm.so+0xbd1001] thread_native_entry(Thread*)+0xe1


          1. hs_err_pid12528.log
            69 kB
          2. hs_err_pid29802.log
            65 kB
          3. Test.java
            0.4 kB

          Issue Links



                wchao Wang Chao
                wchao Wang Chao
                0 Vote for this issue
                7 Start watching this issue