JDK-8289856 : [PPC64] SIGSEGV in C2Compiler::init_c2_runtime() after JDK-8289060
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 20
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • CPU: ppc
  • Submitted: 2022-07-06
  • Updated: 2022-07-11
  • Resolved: 2022-07-07
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 20
20 masterFixed
Related Reports
Relates :  
Relates :  
Description
VM crashes with SIGSEGV during initialization in C2Compiler::init_c2_runtime() while trying to write into an array with negative index: "OptoReg::vm2opto[r->value()] = i;" (c2compiler.cpp:70).
"r" is a nullptr and the new implementation of "r->value()" yields a negative value. (Calling nullptr->value() is undefined behavior!)

Note: Vector registers are OptoRegs but don't have a VMReg representation on PPC64.

Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1205 Date: 2022-07-07 20:13:38 +0000
11-07-2022

Changeset: e05b2f2c Author: Martin Doerr <mdoerr@openjdk.org> Date: 2022-07-07 10:21:25 +0000 URL: https://git.openjdk.org/jdk/commit/e05b2f2c3b9b0276099766bc38a55ff835c989e1
07-07-2022

ILW = crash; always; no workaround = HHH = P1
07-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9403 Date: 2022-07-06 20:48:14 +0000
06-07-2022