JDK-8276227 : ciReplay: SIGSEGV if classfile for replay compilation is not present after JDK-8275868
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-11-01
  • Updated: 2024-04-02
  • Resolved: 2021-11-04
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 17 JDK 18
17.0.12Fixed 18 b23Fixed
Related Reports
Relates :  
Description
The fix for JDK-8275868 only works if the class file for the method to be replay compiled is present. Otherwise, it results in a SIGSEGV because it tries to access the protection domain of a failed to load class (i.e. a NULL pointer).

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ffff66063c6, pid=236864, tid=236868
#
# JRE version: Java(TM) SE Runtime Environment (18.0) (slowdebug build 18-internal+0-2021-11-01-1028080.christian...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (slowdebug 18-internal+0-2021-11-01-1028080.christian..., mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x71b3c6]  CompileReplay::process_instanceKlass(JavaThread*)+0x5a
Comments
Fix request [17u] I backport this as follow-up of JDK-8275868. Small adaptions needed. Test passes and fails without the fix. SAP nightly testing passed.
29-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2335 Date: 2024-03-27 09:12:20 +0000
27-03-2024

Changeset: a1f4c428 Author: Christian Hagedorn <chagedorn@openjdk.org> Date: 2021-11-04 08:53:37 +0000 URL: https://git.openjdk.java.net/jdk/commit/a1f4c428ba1b78a4e18afb87c94a5c731a5aa706
04-11-2021

ILW = Segfault when replay compiling without class files, low, make sure that class file is present = HLM = P3
01-11-2021