adoptium-support icon indicating copy to clipboard operation
adoptium-support copied to clipboard

eclipse-temurin:21 hard crash within Docker container on Apple M4 / macOS 15.2 Processors (aarch64)

Open sgao-becls opened this issue 11 months ago • 3 comments

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

  1. $ docker run -it eclipse-temurin:21 bash
  2. # java --version

Expected Results

Running java in any capacity should work.

Actual Results

It crashes when running java command.

Screenshots

Image

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

sgao-becls avatar Jan 24 '25 07:01 sgao-becls

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 avatar Jan 24 '25 14:01 jerboaa

@jerboaa

'-XX:UseSVE=0' works for me.

Thank you!

sgao-becls avatar Feb 04 '25 01:02 sgao-becls

'-XX:UseSVE=0' works for me.

OK. That work-around should no longer be needed once 21.0.7 ships in April.

jerboaa avatar Feb 05 '25 20:02 jerboaa

21.0.7 shipped. Closing.

jerboaa avatar Apr 22 '25 13:04 jerboaa