-
Notifications
You must be signed in to change notification settings - Fork 119
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
Mac M1 - after upgrade to Docker Desktop 4.27.1 docker container with java fails with qemu: uncaught target signal 11 (Segmentation fault) - core dumped #7172
Comments
Thank @ThomasHurek, sorry for breaking your workflow. I think I know where it comes from. I'll investigate some more tomorrow. Do you have an example of docker image I can use? |
@dgageot Thank you for looking into it. Unfortunately not a public image. |
@dgageot If it's helpful, I'm also getting a qemu seg fault when trying to run containers based off of
Then when I looked at the container logs after stopping it, I saw these:
|
After upgrading OS to Sonoma this error went away 🥳 |
Same here.
Error message
Edit: I downgraded to docker desktop 4.26.1 and the issue seemed to be gone |
Same here
|
Update: after updating to macOS |
Unfortunately macOS 14.x is not rolled out in our company yet so stuck with 12.x or 13.x. |
I'm also having this issue, building the container worked yesterday, not today after the update to 4.27.1 -macOS Monterey 12.7, M1 When I downgraded back to 4.26.1 here it worked again. |
It happens with |
@jmlapre and everyone, could you try Docker Desktop 4.27.2 that was released today? |
Just tried and still seeing: |
Also seeing this after updating to Docker Desktop 4.27.1 in the last few days. A number of our older builds that previously worked over the past years are now suddenly seeing various output similar to this
|
Hi everyone, here's the status on this one:
Could you all try and activate Rosetta, in 4.27.2, and tell me if that works for you too? |
Hey everyone, i just stumbled across the same error after updating to version 4.27.1 this morning and then to 4.27.2. @dgageot after enabling Rosetta the error seems to be gone. |
@dgageot When you mention enabling rosetta I have rosetta enabled in my mac - is there a docker desktop setting to switch to rosetta instead of qemu? I am on macOS 12.7. |
Same - not seeing this configuration option in the Docker Desktop preferences. |
@ThomasHurek @jasonfine I do see the |
Upgraded to macOS 14.3.1 and docker-compose started running like a 👸🏻 again 👍🏻 |
Yup, upgrade to Mac OS 14 did the trick for me too, thanks |
@ThomasHurek @jasonfine Don't you see these settings? |
On Mac OS 14.3.1 with Docker Desktop 4.27.2 PHP container fails like this with containerd on: A. With Rosetta emulation disabled
B. Enabled Rosetta
In other words there is no Qemu error with Rosetta enabled, but the container crashes consistently nonetheless with v4.27.x. |
@ThomasHurek Sorry, I checked and you have to be at least on macOS 13 to enable Rosetta. |
@ThomasHurek I understand those are private images. Can you reproduce with their base images? |
@dgageot the 4.28 resolved the issue for us. Thanks! |
I think it resolved the Segmentation Fault issue here! (Though it introduced a new one: |
I was running into similar issues with a Postgres image, but upgrading to Docker Desktop 4.28 seems to have fixed it for me on Ventura. |
v4.28.0 on MacOS Sonoma solved this issue for me as well regardless of whether I have Rosetta enabled 👍 |
updating docker "desktop" to v4.28.0 isn't the solution. I did it, and nothing changed. |
I am running into a some similar issues. Emulated platforms fail when using |
Docker Desktop v4.28.0 QEMU still segfaults on a simple Cannot install Rosetta (older macbook pro) - docker4desktop is pretty bust for us at this point... |
I was also getting this error with Docker Desktop 4.28.0, on macOS Ventura 13.6.6. Checking "Use Rosetta for x86_64/amd64 emulation" fixed it! |
Fixed for me too, but unfortuantely it doesn't help with arm32 containers which rely on qemu. I think we are running into this mmap issue in qemu 8+ https://gitlab.com/qemu-project/qemu/-/issues/1890. |
EDIT: Updating MacOS to Sonoma 14.4.1 seems to have fixed this. I just upgraded docker desktop to v4.29.0 and am running into this issue as well. M2 Max running MacOS Venture 13.5.2. Container Details:
|
Similar findings here. qemu segfault on That said, at the exact point it previously segfaulted, I now get:
Seems to be linked to this erlang issue, which they are blaming on a bug/feature of qemu: erlang/otp#5625 |
Same issue.
So I've downgraded to Docker Desktop 4.26.0 (130397) - works fine. |
Thanks! I installed that version and it seems to be working fine now. |
Same Issue:
|
I have the same issue, I downgraded docker to 4.26.0 and it works for me too. I am not sure what would be the difference. Rosetta 2, macOs sonoma 14.5, M3 Max |
I had the same issue on mac m1 with monterey, updated to sonoma and docker 4.32.0 and it works now. |
Same thing here on Monterey, where Rosetta 2 is enabled. Docker Desktop 4.32.0 (157355) still triggers the segfaults in old distros with older libc, while Docker Desktop 4.26.1 is fine. Docker Desktop 4.32.0 ❌
then, reverting to Docker Desktop 4.26.1 ✅
|
The "reverse" is still broken: on an Intel Mac, with Sonoma 14.5 and Docker 4.33.0, Qemu still segfaults during builds of an ARM64 image. |
I had the same issue on mac m2 14.5, downgrade the docker desktop to 4.26.0 and it works now. |
Here is the download link for version 4.26.0: |
I had the same issue on Mac M1, Docker 4.33 , downgrading docker to 4.26.0 helped fix the issue |
Same issue Thank you for the Link downgraded from latest to 4.26.0 resolved my issue |
Docker isn't the most suitable option for M1, M2 Max, or ARMX64 architectures overall. Although efforts are being made to create a bridge to utilize the GPU in our devices, the common solution is to use virtual machines running Linux or Windows to access Docker services that operate with CUDA GPU servers. The main challenge lies in figuring out how to connect all these technologies and get them to work in unison. An Orin kit could assist, but that seems too simple to me ;) |
Description
Various docker containers built on arm64 and work fine with docker desktop 4.26.1 and earlier now fail with 4.27.1 with the following error when the Java JVM tries to start:
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Rolling back to 4.26.1 solves the problem.
Reproduce
docker run -p 10039:10039 -p 10041:10041 -p 10042:10042 -p 10020:10020 -p 10200:10200 -p 10203:10203 -p 10202:10202 -p 127.0.0.1:7779:7779 --platform=linux/amd64 -d ...
Inside the container check the JVM logs.
Expected behavior
Docker container with Java JVM should be able to start.
docker version
Client: Cloud integration: v1.0.35+desktop.10 Version: 25.0.2 API version: 1.44 Go version: go1.21.6 Git commit: 29cf629 Built: Thu Feb 1 00:18:45 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.27.1 (136059) Engine: Version: 25.0.2 API version: 1.44 (minimum version 1.24) Go version: go1.21.6 Git commit: fce6e0c Built: Thu Feb 1 00:23:21 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.28 GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
87F8214C-033B-4E15-8F11-D909E9F5EF70/20240205200938
Additional Info
No response
The text was updated successfully, but these errors were encountered: