Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped
Date
Msg-id aTcW1CNyPlY3CL7W@nathan
Whole thread Raw
In response to pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped  (tushar <tushar.ahuja@enterprisedb.com>)
Responses Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped
List pgsql-hackers
On Mon, Dec 08, 2025 at 11:23:53PM +0530, tushar wrote:
> I found a scenario where, after firing the  wrong way of using the pg_dump
> command, not only server fail to start,
> But  later, I am not able to perform initdb/pg_ctl  as well
> 
> Please refer to this testcase:
> "
> PG v19 devel, Cluster running on default port=5432
> Run pg_dump (./pg_dump -Ft -s -c   -v -f postgres schema_clean.tar1)
> "

IIUC the problem is that you are overwriting the postgres binary.  Is that
correct?

> Is there any way we can generate some error messages?

Perhaps it'd be worth making pg_dump a little more cautious about
overwriting existing files (or at least have the option to avoid that).

-- 
nathan



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: vacuumdb: add --dry-run
Next
From: Tom Lane
Date:
Subject: Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped