eclipse-temurin:21 hard crash within Docker container on Apple M4 / macOS 15.2 Processors (aarch64)
Please provide a brief summary of the bug
Cannot launch temurin 21 "java" process within a Docker container running on an Apple M4 processor, running macOS 15.2.
Did you test with the latest update version?
- [ ] Yes
Please provide steps to reproduce where possible
$ docker run -it eclipse-temurin:21 bash# java --version
Expected Results
Running java in any capacity should work.
Actual Results
It crashes when running java command.
Screenshots
What Java Version are you using?
JRE version: (21.0.5+11) (build )
What is your operating system and platform?
macOS: 15.2 (24C101)
Docker version 27.4.0, build bde2b89
How did you install Java?
No response
Did it work before?
Did you test with other Java versions?
Relevant log output
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000ffffa3c67c5c, pid=9, tid=10
#
# JRE version: (21.0.5+11) (build )
# Java VM: OpenJDK 64-Bit Server VM (21.0.5+11-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# j java.lang.System.registerNatives()V+0 [email protected]
#
# 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:
# //hs_err_pid8.log
[0.029s][warning][os] Loading hsdis library failed
#
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
Could be https://bugs.openjdk.org/browse/JDK-8345296. Does this make any difference?
$ docker run -it eclipse-temurin:21 java -XX:UseSVE=0 --version
@jerboaa
'-XX:UseSVE=0' works for me.
Thank you!
'-XX:UseSVE=0' works for me.
OK. That work-around should no longer be needed once 21.0.7 ships in April.
21.0.7 shipped. Closing.