JDK-8257624 : C2: PhaseMacroExpand::eliminate_macro_nodes() crashes on out-of-bounds access into macro node array
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-02
  • Updated: 2020-12-21
  • Resolved: 2020-12-17
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 16
16Fixed
Related Reports
Relates :  
Relates :  
Description
#  Internal Error (.../src/hotspot/share/utilities/growableArray.hpp:150), pid=25160, tid=25175
#  assert(0 <= i && i < _len) failed: illegal index

Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x135cee3]  PhaseMacroExpand::eliminate_macro_nodes()+0x3f3
V  [libjvm.so+0xa130fd]  Compile::Optimize()+0x126d
V  [libjvm.so+0xa15148]  Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0x1838

Comments
[~enikitin], even if it was the same defect, we aren't reopening fixed/resolved JBS bugs as the same bug-id can/should not be used for the follow-up fixes.
18-12-2020

Returning back to resolved.
17-12-2020

A very similar stack trace and a SIGSEGV :)
17-12-2020

[~enikitin] why do you think the crashes are related?
17-12-2020

Looks like it hasn't been fixed. Please find attached hs_err_pid14732.log from 2012-12-14 and jdk-16-28.
17-12-2020

Changeset: fbdc1877 Author: Vladimir Ivanov <vlivanov@openjdk.org> Date: 2020-12-04 09:37:18 +0000 URL: https://git.openjdk.java.net/jdk/commit/fbdc1877
04-12-2020