JDK-8300227 : [macos_aarch64] assert(cpu_has("hw.optional.arm.FEAT_AES")) failed after JDK-8297092
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 21
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2023-01-17
  • Updated: 2023-06-30
  • Resolved: 2023-01-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 21
21 b06Fixed
Related Reports
Relates :  
Description
[2023-01-17T02:23:42,276Z] Error getting java.specification.version for /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-21+6-316/macosx-aarch64-debug.jdk/jdk-21/fastdebug: exit code 134
[2023-01-17T02:23:42,276Z] # To suppress the following error report, specify this argument
[2023-01-17T02:23:42,276Z] # after -XX: or in .hotspotrc:  SuppressErrorAt=/vm_version_bsd_aarch64.cpp:75
[2023-01-17T02:23:42,277Z] #
[2023-01-17T02:23:42,277Z] # A fatal error has been detected by the Java Runtime Environment:
[2023-01-17T02:23:42,277Z] #
[2023-01-17T02:23:42,277Z] #  Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/91e16c40-06d4-468a-9fc3-7198a5bb7d5a-S82745/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e52dd00-5922-4a1e-8f2a-b7c3aa1b783b/runs/2c5f2fc1-fee9-422c-8983-6143a4bd8635/workspace/open/src/hotspot/os_cpu/bsd_aarch64/vm_version_bsd_aarch64.cpp:75), pid=79523, tid=9987
[2023-01-17T02:23:42,277Z] #  assert(cpu_has("hw.optional.arm.FEAT_AES")) failed: should be
[2023-01-17T02:23:42,277Z] #
[2023-01-17T02:23:42,277Z] # JRE version:  (21.0+6) (fastdebug build )
[2023-01-17T02:23:42,277Z] # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 21-ea+6-LTS-316, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
[2023-01-17T02:23:42,277Z] # Core dump will be written. Default location: core.79523
[2023-01-17T02:23:42,277Z] #
[2023-01-17T02:23:42,277Z] # An error report file with more information is saved as:
[2023-01-17T02:23:42,277Z] # /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-21+6-316/src.full/open/hs_err_pid79523.log


Comments
Changeset: f829a679 Author: Hao Sun <haosun@openjdk.org> Date: 2023-01-17 06:43:58 +0000 URL: https://git.openjdk.org/jdk/commit/f829a67935328824d2465d9073107cda7eaaf216
17-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12022 Date: 2023-01-17 06:27:15 +0000
17-01-2023

Hi [~dholmes], it's https://github.com/openjdk/jdk/pull/12022 As mentioned in the commit msg, I checked the JDK build in my Macmini. Could you also help test this PR with your CI? Thanks in advance.
17-01-2023

[~haosun] is that patch forthcoming? If not then I will have to initiate a backout as this is crippling our CI. Thanks.
17-01-2023

Hi [~dholmes], thanks for reporting this bug. 1) We previously missed this build failure mainly because our internal CI was run on one Macmini with new XNU kernel version, i.e. xnu-8020.140.41 ``` Darwin 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:05:47 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T8101 arm64 arm64 Macmini9,1 Darwin ``` 2) I can reproduce this failure on one Macmini with XNU version xnu-7195 ``` Darwin 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:20 PDT 2021; root:xnu-7195.141.6~3/RELEASE_ARM64_T8101 arm64 ``` Root cause: From https://github.com/apple-oss-distributions/xnu/blob/rel/xnu-7195/bsd/kern/kern_mib.c#L855, we can see sysctl string name "FEAT_ASE" is not introduced in xnu-7195. Hence, our assertions added in JDK-8297092 would fail. I will make a patch soon.
17-01-2023

Unable to retrive hs_err file so far. Machine Info: Name Value cpu_name Apple_M1 os_vendor Apple os_version 11.4 os_arch aarch64 cpu_totalCores 8 hw_model Macmini9_1 os_description Mac_OS_X_11.4 os_name macosx
17-01-2023