Open bodhi-one opened 1 month ago
+1
Myself and some others upgraded to Sonoma 14.5 yesterday and are now running into the same issue using Rosetta.
+1
Having the same issue after having updated to Sonoma 14.5. Running Java on Linux within a Docker container using Rosetta on an Apple M1 Max
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ffffed2525a, pid=1, tid=0x00007ffffc512700
#
# JRE version: OpenJDK Runtime Environment (8.0_292-b10) (build 1.8.0_292-b10)
# Java VM: OpenJDK 64-Bit Server VM (25.292-b10 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x9d825a][thread 140737427617536 also had an error]
[thread 140737428670208 also had an error]
oopDesc* PSPromotionManager::copy_to_survivor_space<false>(oopDesc*)+0x2ea
#
# Failed to write core dump. 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
[thread 140737425512192 also had an error]
#
# If you would like to submit a bug report, please visit:
# https://github.com/AdoptOpenJDK/openjdk-support/issues
Docker Team, I assume you have some kind of direct line into Apple to file a bug report please ? (assuming regression in Rosetta?)
We've seen the same issue for individuals running on Apple M1 Pro and Apple M2 Pro as well. This only started after upgrading to Sonoma 14.5. Following the thread in #7006 and attempting to use the community-suggested solutions did not work for us. Specifically, adding the following line to our docker-compose.yml:
JAVA_OPTS: '-XX:+UseConcMarkSweepGC'
The following information is what we've gathered in our Docker Desktop logs:
JRE version: OpenJDK Runtime Environment (8.0_322-b06) (build 1.8.0_322-b06) Java VM: OpenJDK 64-Bit Server VM (25.322-b06 mixed mode linux-amd64 compressed oops)
This is still broken with Java 11.
specifically, we see this when running amd_x86 xbuild images built on m1. probably another Qemu issue.
specifically, we see this when running amd_x86 xbuild images built on m1. probably another Qemu issue.
For me, using an image build on x86, and pulling to local, running still fails on M1/docker/linux/jdk17
I'm hitting this issue too. If it helps, I had previously updated to Sonoma 14.5 and did not see this issue until I later updated my Docker Desktop to 4.30.0 from 4.28.0.
For me, using an image build on x86, and pulling to local, running still fails on M1/docker/linux/jdk17
Also can verify this is the case as well
I'm hitting this issue too. If it helps, I had previously updated to Sonoma 14.5 and did not see this issue until I later updated my Docker Desktop to 4.30.0 from 4.28.0.
4.28 crashes as well, I went back to that version to test.
same issue, docker 4.30.0, Sonoma 14.5 (upgraded last week), M3 MBP.
Docker Desktop Logs: JRE version: OpenJDK Runtime Environment (8.0_342-b07) (build 1.8.0_342-b07) Java VM: OpenJDK 64-Bit Server VM (25.342-b07 mixed mode linux-amd64 compressed oops)
Problematic frame: V [libjvm.so+0x91483f] ObjectMonitor::enter(Thread*)+0x3f
Same issue M3 Max MBP tested both 4.28 and 4.30. Java 8 and Java 17 projects both not working.
Same issue M2 Pro on 4.30 for all Java images (only running over Rosetta tho9ugh)
Same, M1 Pro, Sonoma 14.5
Same, M1 Pro, Sonoma 14.5
Same M3 Pro, Sonoma 14.5
Same M1 Pro, Sonoma 14.5, Java 8
Hello,
We've filed the bug to Apple. Until a proper fixed release, these suggestions have worked for us:
Thanks for your reports and we'll keep you posted!
Hello,
We've filed the bug to Apple. Until a proper fixed release, these suggestions have worked for us:
- @OpenPj's SIGSEGV/SIGBUS/other error when running amd64 Java images on arm64 M1 and M2 Macs upgraded to Sonoma #7006 (comment)
- @gordolio's SIGSEGV/SIGBUS/other error when running amd64 Java images on arm64 M1 and M2 Macs upgraded to Sonoma #7006 (comment)
Thanks for your reports and we'll keep you posted!
I have tried these previous workarounds, did not work for me M1/DockerDesktop 4.30/RockyLinux 8.9/Temurin 17.0.11.
Thanks for filing the bug with Apple.
Hello,
We've filed the bug to Apple. Until a proper fixed release, these suggestions have worked for us:
- @OpenPj's SIGSEGV/SIGBUS/other error when running amd64 Java images on arm64 M1 and M2 Macs upgraded to Sonoma #7006 (comment)
- @gordolio's SIGSEGV/SIGBUS/other error when running amd64 Java images on arm64 M1 and M2 Macs upgraded to Sonoma #7006 (comment)
Thanks for your reports and we'll keep you posted!
I have tried these on M3/DockerDesktop 4.30 and they don't work either.
The only way I could fix this issue at the moment (M3 Pro with Docker Desktop 4.30.0) with all of my java images, was switching to the Serial Garbage Collector:
JAVA_OPTS: -XX:+UseSerialGC
This is at least an acceptable for local development for me, with the known limitation of the usage of this specific garbage collector (might not be a good solution for your specific case). Switching to the Z Garbage Collector (-XX:+UseZGC
) was a hit-and-miss for many of my images.
The only way I could fix this issue at the moment (M3 Pro with Docker Desktop 4.30.0) with all of my java images, was switching to the Serial Garbage Collector:
JAVA_OPTS: -XX:+UseSerialGC
This is at least an acceptable for local development for me, with the known limitation of the usage of this specific garbage collector (might not be a good solution for your specific case). Switching to the Z Garbage Collector (
-XX:+UseZGC
) was a hit-and-miss for many of my images.
JAVA_OPTS: -XX:+UseSerialGC worked for me as well! Thanks!
still having issues, the work around - "JAVA_OPTS: -XX:+UseSerialGC
is not working for me.
After disabling the Rosetta form Docker Desktop above mentioned error on top I am not seeing, but registry service and cloud config service is starting with below error, and after multiple try
"Caused by: java.net.SocketTimeoutException: Read timed out"
but our main service is not starting and try to connect to config service but its not connecting and giving below info message
Will be trying the next url if available to fetch config server
and also I have tried above mentioned solution but it not worked for me as well
@btmaster @edietzsch where exactly we need to add below line, we are using docker-compose.yml file to start our services. I have tried adding in docker-compose.yml file for all service like below but it did't worked
environment:
- "JAVA_OPTS: -XX:+UseSerialGC"
Tried environment:
With the huge traffic on docker it's not working
Changing the GC option works, but for some images, it's not possible/doesn't work.
Is there anything new for a real fix?
Same issue here M2Pro. Non of the JAVA_OPTS worked for me. But downgrading to docker 4.24.2 as mentioned in the link below worked for me.
As mentioned here: https://github.com/docker/for-mac/issues/7006#issuecomment-2128310876
Here I downloaded docker desktop 4.24.2 from: https://docs.docker.com/desktop/release-notes/#4242
Same issue here M2Pro. Non of the JAVA_OPTS worked for me. But downgrading to docker 4.24.2 as mentioned in the link below worked for me.
As mentioned here: #7006 (comment)
Here I downloaded docker desktop 4.24.2 from: https://docs.docker.com/desktop/release-notes/#4242
This workaround fixed it for me as well on M3 max. Thanks a lot @RJ8ILMN !!
Same issue here M2Pro. Non of the JAVA_OPTS worked for me. But downgrading to docker 4.24.2 as mentioned in the link below worked for me.
As mentioned here: #7006 (comment)
Here I downloaded docker desktop 4.24.2 from: https://docs.docker.com/desktop/release-notes/#4242
This is working for me as well for M1 Pro, Sonoma 14.5, Java 17. Thanks @RJ8ILMN
The one other workaround suggested in one of the threads seems to work, which is to downgrade the version of docker desktop to 4.24.2.
Same issue after upgrade to Sonoma 14.5 with MacBook Pro - M3 Pro.
The change to the JAVA_OPTS did not solve the problem for me.
By downgrading to version 4.24.2 of Docker Desktop I was able to resolve the error but all the containers were unusable due to the slowness.
I solved it by downgrading to version 4.26.1 of Docker Desktop. Everything seems to work correctly.
PS: the "Use Rosetta for x86/amd64 emulation on Apple Silicon" flag is set to true.
However, I hope that the bug will be resolved soon so that we can update Docker Desktop to the latest version.
Downgrading 4.27.2 worked for me but latest (may 27) doesn't. Using Apple M2 Pro with Sonoma.
The downgrade to 4.26.1 worked for me at first. Now it is not working.
Disabling Rosetta should fix the issue, although you'll lose the performance it brings. We've already filed a bug report to Apple.
Disabling Rosetta should fix the issue, although you'll lose the performance it brings.
I guess this confuses me. Disabling Rosetta prevents running AMD64 images if that is all that are available, which in my case is why I have enabled it.
No. Disabling Rosetta means Docker Desktop will use QEMU.
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Marvin Greenberg @.> Sent: Thursday, May 30, 2024 7:48:22 PM To: docker/for-mac @.> Cc: Opher Shachar (oshachar) @.>; Manual @.> Subject: Re: [docker/for-mac] Temurin-17.0.11+9 - # SIGSEGV (0xb) at pc=0x00007ffffe1b4700, pid=7, tid=33 - Docker Desktop for Apple Silicon (Issue #7286)
Disabling Rosetta should fix the issue, although you'll lose the performance it brings.
I guess this confuses me. Disabling Rosetta prevents running AMD64 images if that is all that are available, which in my case is why I have enabled it.
— Reply to this email directly, view it on GitHubhttps://github.com/docker/for-mac/issues/7286#issuecomment-2140230871, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7YQRMHFYREJLPETJ7EE3HTZE5J5NAVCNFSM6AAAAABH2L3VOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBQGIZTAOBXGE. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Disabling Rosetta should fix the issue, although you'll lose the performance it brings. We've already filed a bug report to Apple.
Confirmed. Just disabled Rosetta in Docker settings too and java containers are working again.
Hi everyone, here's an internal build that you could try: Docker.dmg We believe it fixes your issues. I would be happy to find out if it doesn't
Hi everyone, here's an internal build that you could try: Docker.dmg We believe it fixes your issues. I would be happy to find out if it doesn't
4.32.0 (153994)
- This is working for me! Thanks for your hard work and fixing this quickly
the downgrade to 4.26.2 did the trick. Works fine 12. June
I can start my Elasticsearch Container with 4.32.0 (153994) - this was not possible with 4.31 or 4.30 , but it seams not to be very stable. The Container will terminate after a couple of minutes when network access occurs. Also tried to disable rosetta, but no luck (OSX14.5 on M2Max). Interesting part - the container will stop with Code (137) and no other log entries. Any idea ?
Yeah that new internal docker image (4.32.0 (153994)
) works well with m1 mac on 14.5. It wasn't working yesterday when I upgraded to macos 4.50 with docker 4.29 and SIGSEGV Java errors on amd64 emulation mode. I have opensearch in the mix too and it works fine. Thanks!
Just had another look today at the behaviour, as I had to do a clean install of docker on my Mac. The issue can be triggered by choosing different Java Garbage collectors in Java I am using Docker Desktop v4.31.0 and Java openjdk version "17.0.11" 2024-04-16 LTS
ParallelGC does not work! -XX:+UseParallelGC
G1GC works! -XX:+UseG1GC
I couldn't install 4.32.0
on my M1 Mac environment probably due to anti-virus software check, so I downgraded 4.26.1
and now it works fine. Thanks a lot of the informations! 🙇
=> Sorry, 4.32.0
can be installed from macOS system setting "Privacy and Security" menu. 4.26.1
was a bit slow, but 4.32.0
is fine on my environment.
Description
Similar to https://github.com/docker/for-mac/issues/7006
M1 MBP updated to Sonoma 14.5 on Tuesday this week.
#
A fatal error has been detected by the Java Runtime Environment:
#
SIGSEGV (0xb) at pc=0x00007ffffe1b4700, pid=7, tid=33
#
JRE version: OpenJDK Runtime Environment Temurin-17.0.11+9 (17.0.11+9) (build 17.0.11+9)
Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.11+9 (17.0.11+9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
Problematic frame:
V [libjvm.so+0x73d700] G1ParScanThreadState::trim_queue_to_threshold(unsigned int)+0x35b0
#
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:
/home/dev/hs_err_pid7.log
#
If you would like to submit a bug report, please visit:
https://github.com/adoptium/adoptium-support/issues
#
Reproduce
Container running:
Java in the container will run for 1-5 minutes before crashing like above.
Expected behavior
Runs as expected, no issues
docker version
docker info
Diagnostics ID
19BD9591-4217-40CD-B558-96E3E82894F6/20240516143857
Additional Info
No response