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

C2: Bytecode escape analyzer crashes with unbalanced stack

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 9
    • 9
    • hotspot

      # Internal Error (/opt/jprt/T/P1/220655.vkozlov/s/hotspot/src/share/vm/ci/bcEscapeAnalyzer.cpp:1037), pid=10262, tid=0x0000000000002859
      # assert(d_state->_stack_height == s_state->_stack_height) failed: computed stack heights must match

      Current CompileTask:
      C2: 456460 12566 b 4 com.oracle.tck.lib.autd2.TestRunner::performRun (248 bytes)

      Stack: [0x00007f9c6aba7000,0x00007f9c6aca8000], sp=0x00007f9c6aca21e0, free space=1004k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x11af871] VMError::report_and_die()+0x151;; VMError::report_and_die()+0x151
      V [libjvm.so+0x833bbb] report_vm_error(char const*, int, char const*, char const*)+0x7b;; report_vm_error(char const*, int, char const*, char const*)+0x7b
      V [libjvm.so+0x4e9351] BCEscapeAnalyzer::merge_block_states(BCEscapeAnalyzer::StateInfo*, ciBlock*, BCEscapeAnalyzer::StateInfo*)+0x111;; BCEscapeAnalyzer::merge_block_states(BCEscapeAnalyzer::StateInfo*, ciBlock*, BCEscapeAnalyzer::StateInfo*)+0x111
      V [libjvm.so+0x4edb66] BCEscapeAnalyzer::iterate_blocks(Arena*)+0x7b6;; BCEscapeAnalyzer::iterate_blocks(Arena*)+0x7b6
      V [libjvm.so+0x4ee336] BCEscapeAnalyzer::do_analysis()+0x86;; BCEscapeAnalyzer::do_analysis()+0x86
      V [libjvm.so+0x4ee5cd] BCEscapeAnalyzer::compute_escape_info()+0x25d;; BCEscapeAnalyzer::compute_escape_info()+0x25d
      V [libjvm.so+0x4ef0eb] BCEscapeAnalyzer::BCEscapeAnalyzer(ciMethod*, BCEscapeAnalyzer*)+0x55b;; BCEscapeAnalyzer::BCEscapeAnalyzer(ciMethod*, BCEscapeAnalyzer*)+0x55b
      V [libjvm.so+0x6aacf0] ciMethod::get_bcea()+0xa0;; ciMethod::get_bcea()+0xa0
      V [libjvm.so+0x8f3ac0] ConnectionGraph::add_call_node(CallNode*)+0x1b0;; ConnectionGraph::add_call_node(CallNode*)+0x1b0
      V [libjvm.so+0x9012b4] ConnectionGraph::compute_escape()+0x454;; ConnectionGraph::compute_escape()+0x454
      V [libjvm.so+0x902908] ConnectionGraph::do_analysis(Compile*, PhaseIterGVN*)+0x178;; ConnectionGraph::do_analysis(Compile*, PhaseIterGVN*)+0x178
      V [libjvm.so+0x7ab726] Compile::Optimize()+0x8e6;; Compile::Optimize()+0x8e6
      V [libjvm.so+0x7ad05b] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool)+0x138b;; Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool)+0x138b
      V [libjvm.so+0x63f8c6] C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0x116;; C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0x116
      V [libjvm.so+0x7b7492] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x462;; CompileBroker::invoke_compiler_on_method(CompileTask*)+0x462
      V [libjvm.so+0x7b82a8] CompileBroker::compiler_thread_loop()+0x408;; CompileBroker::compiler_thread_loop()+0x408
      V [libjvm.so+0x1129de4] JavaThread::thread_main_inner()+0x1d4;; JavaThread::thread_main_inner()+0x1d4
      V [libjvm.so+0x112a108] JavaThread::run()+0x298;; JavaThread::run()+0x298
      V [libjvm.so+0xeda0aa] java_start(Thread*)+0xca;; java_start(Thread*)+0xca
      C [libpthread.so.0+0x7851]



      ILW = HLH = P2

            zmajo Zoltan Majo (Inactive)
            iveresov Igor Veresov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: