Re: pg_dump core dumping

From: Chris Bowlby <excalibur(at)hub(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_dump core dumping
Date: 2003-04-26 17:40:03
Message-ID: 1051378801.91587.27.camel@morpheus
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, 2003-04-26 at 13:52, Tom Lane wrote:

Ok, running the select statement that was used in the core file, I get
these results:

test=# SELECT adsrc from pg_attrdef where adrelid = '16721225'::oid and
adnum = 8 ;
adsrc
-------
'f'
(1 row)

The table with OID 16721225 seems to work with out issue as well:

test=# select * from ec_picklist_items_audit;
picklist_item_id | picklist_item | picklist_name | sort_key |
last_modified | last_modifying_user | modified_ip_address | delete_p
------------------+---------------+---------------+----------+---------------+---------------------+---------------------+----------
(0 rows)

> Chris Bowlby <excalibur(at)hub(dot)org> writes:
> > (gdb) bt
> > #0 0x280880ac in getRowDescriptions (conn=0x8068200) at fe-exec.c:1027
> > #1 0x28087eaa in parseInput (conn=0x8068200) at fe-exec.c:919
> > #2 0x28088525 in PQgetResult (conn=0x8068200) at fe-exec.c:1249
> > #3 0x280886b9 in PQexec (conn=0x8068200, query=0x8076600 "SELECT adsrc
> > from pg_attrdef where adrelid = '16721225'::oid and adnum = 8 ") at
> > fe-exec.c:1362
>
> Bizarre. What happens if you try that same SELECT from psql? (I'd sort
> of expect psql to blow up too, but it'd be worth confirming.) How about
> variants such as "SELECT length(adsrc) FROM ..." ? Can you do a \d on
> whichever table has OID 16721225?
>
> I'm guessing that that row of pg_attrdef is somehow corrupt, but why the
> corruption would crash the client rather than the backend escapes me ...
>
> regards, tom lane
--
Chris Bowlby <excalibur(at)hub(dot)org>
Hub.Org Networking Services

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-04-26 17:46:08 Re: Bug #955: server crashes during plperl execution
Previous Message Tom Lane 2003-04-26 16:52:53 Re: pg_dump core dumping