HotSpot crashes when macOS System Integrity Protection is disabled (*).
This issue appeared with JDK 22, and seems to be limited to aarch64.
- 21 aarch64 works properly
- 22 and 23 aarch64 crash with SIP disabled, work fine if SIP is re-enabled
- 22 and 23 x64 works properly with SIP disabled
Clearly, disabling SIP is not a common use-case.
(*) https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection
To reproduce
```
% ./jdk-23-ea+6_macos-aarch64.jdk/Contents/Home/bin/java -version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0xa) at pc=0x0000000103acf8a4, pid=57590, tid=8707
#
# JRE version: (23.0+6) (build )
# Java VM: OpenJDK 64-Bit Server VM (23-ea+6-400, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# V [libjvm.dylib+0x45b8a4] CodeHeap::allocate(unsigned long)+0x1a4
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/xxx/Library/Java/JavaVirtualMachines/hs_err_pid57590.log
#
```
This issue appeared with JDK 22, and seems to be limited to aarch64.
- 21 aarch64 works properly
- 22 and 23 aarch64 crash with SIP disabled, work fine if SIP is re-enabled
- 22 and 23 x64 works properly with SIP disabled
Clearly, disabling SIP is not a common use-case.
(*) https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection
To reproduce
```
% ./jdk-23-ea+6_macos-aarch64.jdk/Contents/Home/bin/java -version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0xa) at pc=0x0000000103acf8a4, pid=57590, tid=8707
#
# JRE version: (23.0+6) (build )
# Java VM: OpenJDK 64-Bit Server VM (23-ea+6-400, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# V [libjvm.dylib+0x45b8a4] CodeHeap::allocate(unsigned long)+0x1a4
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/xxx/Library/Java/JavaVirtualMachines/hs_err_pid57590.log
#
```
- duplicates
-
JDK-8338332 JDK versions > 18.0.2.1 crash because of a bad memory access
-
- Closed
-
-
JDK-8332434 Always SIGBUS error when call JNI_CreateJavaVM
-
- Closed
-
- relates to
-
JDK-8338332 JDK versions > 18.0.2.1 crash because of a bad memory access
-
- Closed
-