-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java (eclipse temurin, graalvm) and Docker Desktop on mac m4 crashing #7583
Comments
The same behavior exists with Docker Desktop $ docker run --rm ghcr.io/graalvm/jdk-community:23.0.2-ol8-20250121
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000ffff766b3ce8, pid=1, tid=7
#
# JRE version: (23.0.2+7) (build )
# Java VM: OpenJDK 64-Bit Server VM (23.0.2+7-jvmci-b01, mixed mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# j java.lang.System.registerNatives()V+0 java.base
#
# 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:
# /app/hs_err_pid1.log
[0.034s][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.
#
[error occurred during error reporting (), id 0x5, SIGTRAP (0x5) at pc=0x0000ffff9060abc0] Orbstack $ docker run --rm ghcr.io/graalvm/jdk-community:23.0.2-ol8-20250121
openjdk 23.0.2 2025-01-21
OpenJDK Runtime Environment GraalVM CE 23.0.2+7.1 (build 23.0.2+7-jvmci-b01)
OpenJDK 64-Bit Server VM GraalVM CE 23.0.2+7.1 (build 23.0.2+7-jvmci-b01, mixed mode, sharing) |
I downgraded back to |
Likely related to #7573 |
I'm not sure, this is not the same kind of issue. |
With Docker Desktop 4.37.2 it also doesn't work. docker run --rm eclipse-temurin:23.0.2_7-jre-ubi9-minimal@sha256:c73bb553f2b31e7fffeaead3c4ce95e8caf1572d55c6ce254054ddfd0cac3960 java -version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000ffffa67401a8, pid=1, tid=7
#
# JRE version: (23.0.2+7) (build )
# Java VM: OpenJDK 64-Bit Server VM (23.0.2+7, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# j java.lang.System.registerNatives()V+0 java.base@23.0.2
#
# 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_pid1.log
[0.057s][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.
#
[error occurred during error reporting (), id 0x5, SIGTRAP (0x5) at pc=0x0000ffffba2bf070]
|
A similar issue was reported in amazoncorretto corretto/corretto-21#85 Switching from |
A fix will be available in the next release of Docker Desktop (v4.39). |
Let me close this issue since a fix will be released in a few days, but feel free to continue the conversation. |
🎉 |
Thanks @akerouanton for the fix! |
Description
When using java images (
eclipse-temurin
, for java 21 or 23) java is crashing all time. It's the same thing with maven images (all official images).This looks like to be link in some way to Docker Desktop as the exact same images on the exact same machine are working fine with Orbstack for instance.
Hardware is a Mac m4 pro.
Reproduce
Expected behavior
The trick:
docker context use orbstack
🫣docker version
Client: Version: 27.4.1 API version: 1.47 Go version: go1.22.10 Git commit: b9d17ea Built: Tue Dec 17 15:42:24 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.39.0 (182283) Engine: Version: 27.5.1 API version: 1.47 (minimum version 1.24) Go version: go1.22.11 Git commit: 4c9b3b0 Built: Wed Jan 22 13:41:25 2025 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.7.25 GitCommit: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb runc: Version: 1.2.4 GitCommit: v1.2.4-0-g6c52b3f docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
5DC257AD-3BE5-4DE1-A0B7-997A389D2C6B/20250207093655
Additional Info
No response
The text was updated successfully, but these errors were encountered: