JDK-8254814 : [Vector API] Fix an AVX512 crash after JDK-8223347
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-10-15
  • Updated: 2020-10-25
  • Resolved: 2020-10-16
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
16 b21Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
# Reproduce
Run jdk/incubator/vector/Short64VectorTests.java on AVX512 machines

# Symptom
```
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/home/jdk/src/hotspot/cpu/x86/assembler_x86.cpp:8714), pid=96989, tid=97022
#  assert(((dst_enc < 16 && nds_enc < 16 && src_enc < 16) || (!attributes->is_legacy_mode()))) failed: XMM register should be 0-15
#
# JRE version: OpenJDK Runtime Environment (16.0+4) (fastdebug build 16-internal+4-adhoc..jdk)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 16-internal+4-adhoc..jdk, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x63259f]  Assembler::vex_prefix_and_encode(int, int, int, Assembler::VexSimdPrefix, Assembler::VexOpcode, InstructionAttr*) [clone .constprop.1]+0x21f
#
```
Comments
Changeset: 3d23bd8e Author: Jie Fu <jiefu@openjdk.org> Date: 2020-10-16 06:57:36 +0000 URL: https://git.openjdk.java.net/jdk/commit/3d23bd8e
16-10-2020

Okay, thanks!
15-10-2020

The original generated hs_err is OK. We are not allowed to provide log files which contain detailed HW/SW info. So I just delete part of the hs_err by hand. Thanks.
15-10-2020

> For some reason, part of the hs_err was omitted. Is that reproducible? If so, could you file a bug for that?
15-10-2020

Thanks! For the record: This is only fixed now because JDK-8223347 missed to include JDK-8252964: https://github.com/openjdk/jdk/pull/367#issuecomment-701560441
15-10-2020

ILW = Assert during C2 compilation, single test using Vector API (incubator) on AVX512 machine, no workaround but disable compilation of affected method = HLM = P3
15-10-2020

Hi Tobias, The hs_err had been uploaded. For some reason, part of the hs_err was omitted. Thanks.
15-10-2020

[~jiefu] please add at least an hs_err file to the bug report. Thanks.
15-10-2020