docker-library / postgres

Docker Official Image packaging for Postgres
http://www.postgresql.org
MIT License
2.14k stars 1.11k forks source link

PostgreSQL 14.11 is not able to identify the postmaster daemon. #1208

Closed vigneshkumar2016 closed 4 months ago

vigneshkumar2016 commented 4 months ago

PostgreSQL 14.11 runs out on error. Image: Official Image Version: 14.11 OS: Debian OS version: bullseye Container: yes

PostgreSQL errors out on 14.11 Segmentation fault (core dumped). this is quite strange.

PostgreSQL 14.5, 14.6, 14.0 works just fine.

Seems like the compiler is overshooting on the address space to load postgres.

any help here is much appreciated.

ImreSamu commented 4 months ago

Hi @vigneshkumar2016 ,

It's possible that the issue you're encountering is related to libseccomp. If that's the case, you might consider updating both libseccomp and docker on the host that's running the containers. ( or just use postgres:14.11-bullseye )

For detailed information, including the root cause and potential workarounds, please visit: https://github.com/docker-library/postgres/issues/1100#issuecomment-1599660628

vigneshkumar2016 commented 4 months ago

libseccomp

Thanks, this works for me. However the traceback results and coredump looks similar with that of the one which is working and failing. pretty strange to debug. But clearly getting libraries are not getting loaded to the container memory.

tianon commented 4 months ago

Yeah, the seccomp blocks happen at the kernel level, so strace is one of the few tools that shows what's happening and even then it's usually an obscure EPERM in places it shouldn't be and no real indicator that it's actually seccomp blocking it. :sob: