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

C2: Unexpected dead nodes after matching


    • Subcomponent:
    • Resolved In Build:


      While running following example C2 crashes
      # A fatal error has been detected by the Java Runtime Environment:
      # SIGSEGV (0xb) at pc=0x00007fa6648787a3, pid=13689, tid=13701
      # JRE version: Java(TM) SE Runtime Environment (11.0+7) (fastdebug build 11-ea+7)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 11-ea+7, compiled mode, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xd9e7a3] Node_Backward_Iterator::next()+0x173
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /tmp/fuzzer.tmp.XWph5hV3Hg/core.13689)
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp

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

      Command Line: -Xmx1G -Xcomp -Xbatch -XX:-TieredCompilation -XX:CompileOnly= Test

      Host: slc16ijb, Intel Core Processor (Haswell, no TSX), 4 cores, 14G, Oracle Linux Server release 7.4
      Time: Mon Apr 9 19:19:08 2018 PDT elapsed time: 7 seconds (0d 0h 0m 7s)

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

      Current thread (0x00007fa65c269800): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=13701, stack(0x00007fa63edb1000,0x00007fa63eeb2000)]

      Current CompileTask:
      C2: 7551 1365 b Test::vMeth (232 bytes)

      Stack: [0x00007fa63edb1000,0x00007fa63eeb2000], sp=0x00007fa63eeace50, free space=1007k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xd9e7a3] Node_Backward_Iterator::next()+0x173
      V [libjvm.so+0xda3544] PhaseCFG::schedule_late(VectorSet&, Node_Stack&)+0xd4
      V [libjvm.so+0xda54cd] PhaseCFG::global_code_motion()+0x12dd
      V [libjvm.so+0xda6cf1] PhaseCFG::do_global_code_motion()+0x51
      V [libjvm.so+0xa8bb02] Compile::Code_Gen()+0x292
      V [libjvm.so+0xa8f5aa] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x130a
      V [libjvm.so+0x8b27d2] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x2e2
      V [libjvm.so+0xa99d48] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3b8
      V [libjvm.so+0xa9a9d1] CompileBroker::compiler_thread_loop()+0x281
      V [libjvm.so+0x17635f2] JavaThread::thread_main_inner()+0x242
      V [libjvm.so+0x17637f4] JavaThread::run()+0x144
      V [libjvm.so+0x1495212] thread_native_entry(Thread*)+0x112


        1. FuzzerUtils.java
          13 kB
        2. hs_err_pid1844.log
          64 kB
        3. hs_err_pid6208.log
          36 kB
        4. hs_err_pid68868.log
          73 kB
        5. Test.java
          7 kB

          Issue Links



              • Assignee:
                vlivanov Vladimir Ivanov
                lmesnik Leonid Mesnik
              • Votes:
                0 Vote for this issue
                5 Start watching this issue


                • Created: