Re: pg_dump seg fault on sequences - Mailing list pgsql-general

From Michael Fuhr
Subject Re: pg_dump seg fault on sequences
Date
Msg-id 20070415015939.GA76762@winnie.fuhr.org
Whole thread Raw
In response to Re: pg_dump seg fault on sequences  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Sat, Apr 14, 2007 at 06:26:22PM -0400, Tom Lane wrote:
> "Michael Nolan" <htfoot@gmail.com> writes:
> > I've narrowed down the conditions under which pg_dump in 8.2.3 is creating a
> > segmentation fault.
> > It appears to happen only when dumping a sequence that is created for a
> > serial data element.
>
> Thanks for the test case --- I can reproduce this now on 8.2 and HEAD too.
> Will take a look tomorrow if no one beats me to it.

(gdb) bt
#0  0x0001e500 in dumpTable (fout=0x53498, tbinfo=0x8c7e0) at pg_dump.c:8733
#1  0x0001f12c in dumpDumpableObject (fout=0x53498, dobj=0x8c7e0) at pg_dump.c:5009
#2  0x00020dd8 in main (argc=4, argv=0x6e) at pg_dump.c:691
(gdb) l 8733,+1
8733                    appendPQExpBuffer(query, ".%s;\n",
8734                            fmtId(owning_tab->attnames[tbinfo->owning_col - 1]));
(gdb) p owning_tab->attnames
$1 = (char **) 0x0

--
Michael Fuhr

pgsql-general by date:

Previous
From: Guy Rouillier
Date:
Subject: Re: Evaluate only one CASE WHEN in a select
Next
From: "Alain Roger"
Date:
Subject: issue when export/import table including pictures