-
Notifications
You must be signed in to change notification settings - Fork 21
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
Corretto 21 hard crash within Docker container on Apple M4 / macOS 15.2 Processors (aarch64) #85
Comments
Note that there are no issues running Corretto 21 (or 8, 11, 17, etc) on macOS 15.2 natively (not in the Docker/Linux/aarch64 environment).
So this may be a Docker kernel issue? |
Hi, thanks for contacting us about this. Based on the crash log, I suspect this is https://bugs.openjdk.org/browse/JDK-8345296. Do you have a consistent reproducer for this issue? If so, could you test with a nightly build of tip from https://downloads.corretto.aws/#/downloads?build=nightly&version=tip to see if the issue is resolved? |
Hi @benty-amzn - per the description, the consistent reproducer is just Will test a nightly now. |
It seems either macos 15.2 or m4 processor is a key component here, fails to reproduce for me on 15.1 with m3. I'll see if I can find another way to test this. |
@benty-amzn Latest nightly from your link on Alpine (latest):
So seems to start without issue. For completeness, here's the current 21-LTS on Alpine:
So, identical issue to running on Debian/Ubuntu, etc. Conclusion: Nightly works, current stables do not (including the LTS downloads, which is problematic).
|
I had these Docker images running on the same test machine on 15.1 with an M4 Pro this morning. Looks like 15.2 is the issue. |
Resolved by #84 if this is the same bug. I'm working on getting macos 15.2 installed for testing at the moment. |
This issue does not reproduce for me with m3 hardware and macos 15.2. Could you check if it reproduces with a fastdebug build of Corretto 21 from https://downloads.corretto.aws/#/downloads?build=nightly&version=21 and attach the hs_err? |
Hello, I could not reproduce on my M4 Pro with macOS 15.1.1, but after upgrading to 15.2, I can reproduce (in docker only, native seems ok) with release and fastdebug versions (docker_hs_err.zip) Host:
Container:
Edit:
|
@benty-amzn @acradu Seeing the same thing. The fastdebug fails. All versions work fine in native macOS / aarch64; it's just Docker/Linux on the M4 that fails. I can also confirm that 15.2 on my partner's M3 Pro works fine. Seems like an M4 / 15.2 / Docker problem that didn't affect M4 / 15.1.x / Docker. I'll report back on Certainly a better approach than running in AMD64 / Rosetta 2 emulation mode. |
We've now been able to reproduce on m4 hardware running macos 15.2. Confirmed that the issue did not replicate with 15.1.1 before the update, and does after. Does not manifest on m1 or m3 hardware, we have not been able to test m2. The issue appears to impact openjdk distributions version 21 and 23, and is resolved by JDK-8345296 / #84, or the workaround described on the JBS issue of |
Awesome that it can be reproduced and that #84 is the fix. For confirmation:
From:
I can adapt my Docker staging scripts to add |
Confirmed that my present workaround that works is adding |
Hi we saw this happens on 15.2 M4*, M3, M2 does not have this issue. This issues happens on JDK/JRE 18-23, JDK 17 does not have this issue:
|
On Mac Os 15.2 24C101, M4 Processor, Docker Desktop 4.37.1 (178610) and gradle:latest im able to reproduce it too(btw i know it's another image), and the |
UserAPI is ok + Workaround for M4, Java 21, MacOS 15.2 bug: corretto/corretto-21#85
Describe the bug
Cannot launch Corretto 21 "java" process within a Docker container running on an Apple M4 processor, running macOS 15.2.
To Reproduce
# apt -y update
# apt install -y wget
# wget -P / https://corretto.aws/downloads/latest/amazon-corretto-21-aarch64-linux-jdk.deb
# apt-get install -y /amazon-corretto-21-aarch64-linux-jdk.deb
# java
Output as follows:
Note that identical behaviour occurs with Corretto 23; so something appears to be completely broken on macOS 15.2/Docker/aarch64 right now.
Expected behavior
Fairly clear; running
java
in any capacity should work.Screenshots
Platform information
Additional context
Log data attached:
hs_err_pid2866.log.zip
The text was updated successfully, but these errors were encountered: