I'm getting a segfault when trying to pg_dump a database containing the postgis extension, but only when excluding the spatial_ref_sys table. I am using Docker but the base image is standard Debian and Postgres is being installed from the official APT repos.
The segfault appears to be in pg_dump, the server just logs "unexpected EOF on client connection with an open transaction" and continues running fine otherwise.
Let me know if there's any extra info I can provide