JDK-8172751 : OSR compilation at unreachable bci causes C1 crash
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8u111,9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-01-13
  • Updated: 2019-05-08
  • Resolved: 2017-01-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10 JDK 8 JDK 9
10Fixed 8u162Fixed 9 b156Fixed
Description
product:
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f732e0a5234, pid=14672, tid=0x00007f72ef308700
#
# JRE version: OpenJDK Runtime Environment (8.0_111-b14) (build 1.8.0_111-8u111-b14-3-b14)
# Java VM: OpenJDK 64-Bit Server VM (25.111-b14 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x338234]  GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x3f4

fastdebug:
#  Internal Error (.../src/share/vm/c1/c1_GraphBuilder.cpp:3288), pid=14904, tid=0x00007f47f0c57700
#  assert(osr_block->is_set(BlockBegin::was_visited_flag)) failed: osr entry must have been visited for osr compile

Stack:
V  [libjvm.so+0x11a3b14]  VMError::report_and_die()+0x154
V  [libjvm.so+0x77866b]  report_vm_error(char const*, int, char const*, char const*)+0x7b
V  [libjvm.so+0x4b4ebf]  GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x68f
V  [libjvm.so+0x4bc9d1]  IR::IR(Compilation*, ciMethod*, int)+0x761
V  [libjvm.so+0x491934]  Compilation::build_hir() [clone .part.85]+0x124
V  [libjvm.so+0x495ba8]  Compilation::compile_java_method()+0x988
V  [libjvm.so+0x495c6a]  Compilation::compile_method()+0x7a
V  [libjvm.so+0x496353]  Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*)+0x373
V  [libjvm.so+0x496ef2]  Compiler::compile_method(ciEnv*, ciMethod*, int)+0x152
V  [libjvm.so+0x6f05b6]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x566
V  [libjvm.so+0x6f19f7]  CompileBroker::compiler_thread_loop()+0x5e7
V  [libjvm.so+0x1115f78]  JavaThread::thread_main_inner()+0x168
V  [libjvm.so+0x11162ae]  JavaThread::run()+0x2ce
V  [libjvm.so+0xeca362]  java_start(Thread*)+0xf2
C  [libpthread.so.0+0x7464]  start_thread+0xc4

Current CompileTask:
C1:    570  219 %  b  3       compiler.c1.Test8172751::executeLoop @ 23 (46 bytes)

Comments
ILW = Crash in C1 during OSR compilation, rare but reproducible with testcase, disable (OSR) compilation = HMM = P2
13-01-2017