Re: BUG #16951: pg_restore segfaults on custom format piped from a different version of PG

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: skoposov(at)ed(dot)ac(dot)uk
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16951: pg_restore segfaults on custom format piped from a different version of PG
Date: 2021-03-31 21:27:11
Message-ID: 3331060.1617226031@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> I have a reproducible case of segfaulting pg_restore when trying to restore
> from pg_dump of a different version. Specifically at least pg_restore from
> 10 crashes from pg_dump 12.

When I try that I get

pg_restore: [archiver] unsupported version (1.14) in file header

and that test is done first thing in ReadHead(), before the place
you identify. I suspect you are dealing with a corrupt archive
file, not a version mismatch.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sergey KOPOSOV 2021-03-31 21:45:08 Re: BUG #16951: pg_restore segfaults on custom format piped from a different version of PG
Previous Message PG Bug reporting form 2021-03-31 20:06:01 BUG #16951: pg_restore segfaults on custom format piped from a different version of PG