postgres:17-alpine crashes with SIGSEGV on ARM64 (Apple Silicon) - Alpine 3.23 regression
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the failure with docker run --rm postgres:17-alpine postgres --version on linux/arm64, then compare it with the working Alpine 3.22 and Debian tags. Trace the Alpine 3.23 compatibility regression and verify the fix by rerunning the provided image matrix; done means PostgreSQL runs without SIGSEGV on ARM64.
Written by the indexing model from the issue text.
Description
Description
postgres:17-alpine (which uses Alpine 3.23) crashes immediately with SIGSEGV (exit code 139) on ARM64 (Apple Silicon Mac). The PostgreSQL binary fails to execute any command, including postgres --version.
Environment
- Host: macOS (Apple Silicon M-series)
- Docker: Docker Desktop 29.1.3
- Architecture: linux/arm64
Reproduction
# This crashes immediately with exit code 139
docker run --rm postgres:17-alpine postgres --version
# This works fine
docker run --rm postgres:17-alpine3.22 postgres --version
Verified Test Matrix
| Image Tag | Alpine Version | PostgreSQL | ARM64 Status |
|---|---|---|---|
postgres:17-alpine3.21 |
3.21.x | 17.7 | ✅ Works |
postgres:17-alpine3.22 |
3.22.x | 17.7 | ✅ Works |
postgres:17-alpine |
3.23.2 | 17.7 | ❌ Crashes (SIGSEGV) |
postgres:17 (Debian) |
N/A | 17.7 | ✅ Works |
Analysis
The crash was introduced when the 17-alpine tag was updated to use Alpine 3.23 (released December 17, 2025). Both working and broken images use LLVM 19.x, so this is NOT an LLVM issue.
The Alpine container itself runs fine - only the PostgreSQL binary crashes:
# Alpine shell works
docker run --rm postgres:17-alpine cat /etc/alpine-release
# Output: 3.23.2
# PostgreSQL binary crashes
docker run --rm postgres:17-alpine postgres --version
# Exit code: 139 (SIGSEGV)
Suspected Cause
Something changed in Alpine 3.23 that affects PostgreSQL on ARM64. Possible causes:
- musl libc changes
- GCC 14 → 15 compiler changes
- Other toolchain/runtime library changes
Workaround
Use an explicit Alpine 3.22 tag:
# docker-compose.yml
services:
postgres:
image: postgres:17-alpine3.22 # Works on ARM64
Or use the Debian-based image:
services:
postgres:
image: postgres:17 # Also works
Additional Context
- This affects Apple Silicon Macs (M1/M2/M3/M4)
- The
postgres:17-alpineimage was last pushed December 18, 2025 - Alpine 3.23 was released December 17, 2025
- Dominant language
- Shell
- Stars
- 2.5k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker-library/postgres
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
docker-library/postgres#1420 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
docker-library/postgres#1419 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
docker-library/postgres#1356 · 5 comments · 7 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
docker-library/postgres#1355 · 10 comments · 11 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
docker-library/postgres#1349 · 3 comments ·
All issues in docker-library/postgres
Similar issues
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
petry-projects/.github-private#1981 · 1 comment ·
Maintainers usually reply within 1 day
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oSoWoSo/vOid_Community_repOsitory#207 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
alunduil/alunduil-chezmoi#815 ·
Maintainers usually reply within 1 day
-
good first issue new package
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wimpysworld/deb-get#2035 ·
Maintainers usually reply within 1 day
-
automation documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day