Repository navigation
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
Description
Activity
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
postgis/postgis:15-masterimage. That one is public. I'm currently on macOS Monterey, but am going to update to Sonoma this evening.db | performing post-bootstrap initialization ... ok db | syncing data to disk ... ok db | db | initdb: warning: enabling "trust" authentication for local connections db | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. db | db | Success. You can now start the database server using: db | db | pg_ctl -D /var/lib/postgresql/data -l logfile start db | db | waiting for server to start....2024-02-05 20:51:40.289 UTC [126] LOG: starting PostgreSQL 15.2 (Debian 15.2-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit db | 2024-02-05 20:51:40.292 UTC [126] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" db | 2024-02-05 20:51:40.309 UTC [134] LOG: database system was shut down at 2024-02-05 20:51:39 UTC db | qemu: uncaught target signal 11 (Segmentation fault) - core dumped db | qemu: uncaught target signal 11 (Segmentation fault) - core dumped db | qemu: uncaught target signal 11 (Segmentation fault) - core dumped db | stopped waiting db | pg_ctl: could not start server db | Examine the log output. db exited with code 1Then when I looked at the container logs after stopping it, I saw these:
2024-02-05 17:24:21 2024-02-05 17:24:21 PostgreSQL Database directory appears to contain a database; Skipping initialization 2024-02-05 17:24:21 2024-02-05 17:24:21 2024-02-05 23:24:21.311 UTC [1] LOG: starting PostgreSQL 15.5 (Debian 15.5-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit 2024-02-05 17:24:21 2024-02-05 23:24:21.317 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2024-02-05 17:24:21 2024-02-05 23:24:21.317 UTC [1] LOG: listening on IPv6 address "::", port 5432 2024-02-05 17:24:21 2024-02-05 23:24:21.382 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2024-02-05 17:24:21 2024-02-05 23:24:21.449 UTC [70] LOG: database system was interrupted; last known up at 2024-02-05 22:55:06 UTC 2024-02-05 17:24:21 2024-02-05 23:24:21.994 UTC [72] FATAL: the database system is starting up 2024-02-05 17:24:22 2024-02-05 23:24:22.309 UTC [70] LOG: database system was not properly shut down; automatic recovery in progress 2024-02-05 17:24:22 2024-02-05 23:24:22.341 UTC [70] LOG: invalid record length at 0/14FE148: wanted 24, got 0 2024-02-05 17:24:22 2024-02-05 23:24:22.341 UTC [70] LOG: redo is not required 2024-02-05 17:24:22 2024-02-05 23:24:22.379 UTC [66] LOG: checkpoint starting: end-of-recovery immediate wait 2024-02-05 17:24:22 2024-02-05 23:24:22.395 UTC [66] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.004 s, sync=0.002 s, total=0.028 s; sync files=2, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB 2024-02-05 17:24:22 qemu: uncaught target signal 11 (Segmentation fault) - core dumped 2024-02-05 17:24:22 qemu: uncaught target signal 11 (Segmentation fault) - core dumped 2024-02-05 17:24:22 qemu: uncaught target signal 11 (Segmentation fault) - core dumpedReacted by Federico BicchedduAfter upgrading OS to Sonoma this error went away 🥳
Reacted by Ole Andreas Jørnsen Herland, Daan Adriaan, claudia-watson-sp, PilarPickering and vayronReacted by Alex, Kevin Unkrich, Serhii Bilyk, spirodelazz, mr.Reband, Baris Ozgen, Rajiv Chodisetti, Shane O'Hanlon and KatheReacted by Daan AdriaanReacted by Daan AdriaanSame here.
- docker-compose
- postgis/postgis:11-2.5
- macOS Ventura 13.6.4 (22G513)
Error message
qemu: uncaught target signal 11 (Segmentation fault) - core dumpedEdit:
I downgraded to docker desktop 4.26.1 and the issue seemed to be gone
Same here
qemu: uncaught target signal 11 (Segmentation fault)- macOS 13.5.2 M1 Max
- I downgraded a few versions, to
4.24.2and it stopped happening - The base Image I'm using is
ubuntu:focalwith a custom Node.js 18x application
If you experience this issue: downgrade Docker for Mac https://stackoverflow.com/a/64825028/4681920
Update: after updating to macOS
14.3the issue does not occur anymoreReacted by Kevin, Ole Andreas Jørnsen Herland, claudia-watson-sp, 高江洲 順八 and Vadym OzarynsyiReacted by Kevin Unkrich, Eugene Mitskevich, urusaich, rao yunkun, hatlonely, Pedro Fonseca, Rajiv Chodisetti, Shane O'Hanlon and ridhachahedReacted by Daan AdriaanUnfortunately 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.
Reacted by maxarvid, Justin M. LaPre, Simona Aksman, Luís Braga, Max Goodridge, atemiks and Rai FerreiraIt happens with
linux/amd64 docker/dev-environments-default:stable-1on my M1 Mac.Reacted by Aaron Murray43 remaining items
Similar findings here. qemu segfault on
linux/amd64docker buildx. The segfault was when running./configureon the codebase at https://github.com/signalwire/freeswitch. Segfault was fixed by upgrading to MacOS Sonoma.That said, at the exact point it previously segfaulted, I now get:
56.75 checking for erl... /usr/bin/erl 56.75 checking erlang version... 13.1.5 56.97 checking erlang libdir... configure: error: failedSeems to be linked to this erlang issue, which they are blaming on a bug/feature of qemu: erlang/otp#5625
Same issue.
I have rosetta2 installed on my 12.6.3 Monterey on M1 pro.
There is no such thing likeUse Rosetta for x86/amd64 emulation on Apple Siliconneither in General nor in experimental options in the latest Docker desktop 4.30.0. Sounds like a plan:- break qemu
- remove an option to use Rosetta2
So I've downgraded to Docker Desktop 4.26.0 (130397) - works fine.
Reacted by Esteban Mendoza, Tyler Marshall and dwaReacted by Adeel Mujahid and Tyler MarshallSame issue. I have rosetta2 installed on my 12.6.3 Monterey on M1 pro. There is no such thing like
Use Rosetta for x86/amd64 emulation on Apple Siliconneither in General nor in experimental options in the latest Docker desktop 4.30.0. Sounds like a plan:* break qemu * remove an option to use Rosetta2So 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:
- Rosetta 2, macOS Monterey on chip M1 Pro.
- Mysql.5.7.44
- Docker Desktop 4.30.0 (149282).
- Ran into the issue below:
2024-06-12 11:35:08 2024-06-12 11:35:08+01:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.44-1.el7 started. 2024-06-12 11:35:09 2024-06-12 11:35:09+01:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2024-06-12 11:35:10 2024-06-12 11:35:10+01:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.44-1.el7 started. 2024-06-12 11:35:11 2024-06-12 11:35:11+01:00 [Note] [Entrypoint]: Initializing database files 2024-06-12 11:35:11 qemu: uncaught target signal 11 (Segmentation fault) - core dumped 2024-06-12 11:35:11 /usr/local/bin/docker-entrypoint.sh: line 236: 219 Segmentation fault "$@" --initialize-insecure --default-time-zone=SYSTEM- Downgraded to 4.26.0 (130397)
- Works fine.
Reacted by dwaI 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
Reacted by Ian Handley and dwaI 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 ❌
$ sw_vers ; arch ProductName: macOS ProductVersion: 12.7.5 BuildVersion: 21H1222 arm64 $ docker version Client: Version: 27.0.3 API version: 1.46 Go version: go1.21.11 Git commit: 7d4bcd8 Built: Fri Jun 28 23:59:41 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.32.0 (157355) Engine: Version: 27.0.3 API version: 1.46 (minimum version 1.24) Go version: go1.21.11 Git commit: 662f78c Built: Sat Jun 29 00:02:44 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.7.18 GitCommit: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e runc: Version: 1.7.18 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0 $ docker run -ti --platform linux/amd64 centos:6.10 yum makecache qemu: uncaught target signal 11 (Segmentation fault) - core dumpedthen, reverting to Docker Desktop 4.26.1 ✅
$ sw_vers ; arch ProductName: macOS ProductVersion: 12.7.5 BuildVersion: 21H1222 arm64 $ docker version Client: Cloud integration: v1.0.35+desktop.5 Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:04:20 2023 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.26.1 (131620) Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:08:15 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.25 GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f runc: Version: 1.1.10 GitCommit: v1.1.10-0-g18a0cb0 docker-init: Version: 0.19.0 GitCommit: de40ad0 $ docker run -ti --platform linux/amd64 centos:6.10 yum makecache Loaded plugins: fastestmirror, ovl [...]Reacted by Gordon HuiThe "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.
Reacted by Lucas BrandtI 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:
https://desktop.docker.com/mac/main/arm64/130397/Docker.dmgReacted by Ran Joe, Rajiv Chodisetti and juliet-v2Reacted by Rajiv Chodisetti and Gerardo LinaresI 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: de40ad0docker info
Diagnostics ID
87F8214C-033B-4E15-8F11-D909E9F5EF70/20240205200938
Additional Info
No response