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

From Tom Lane
Subject Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped
Date
Msg-id 3021314.1765218013@sss.pgh.pa.us
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
Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped
List pgsql-hackers
tushar <tushar.ahuja@enterprisedb.com> writes:
> 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

> The result is :
> edb@1a1c15437e7c bin]$ ./pg_dump -Ft -s -c   -v -f postgres schema_clean.tar1
> qemu: uncaught target signal 7 (Bus error) - core dumped

I think what you are showing here is that you ran this command in the
installation's bin directory, and where you write "-f postgres",
that caused pg_dump to overwrite the postgres executable.

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

Don't do that.  Generally speaking, you don't want installed files to
be writable at all by ordinary user accounts ... but if they are,
for heaven's sake don't cd into those directories before doing work.
You're just setting yourself up for trouble.

            regards, tom lane



pgsql-hackers by date:

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