Re: oid2name core dump - Mailing list pgsql-bugs

From Neil Conway
Subject Re: oid2name core dump
Date
Msg-id 1101967882.22124.206.camel@localhost.localdomain
Whole thread Raw
In response to oid2name core dump  (Michael Fuhr <mike@fuhr.org>)
Responses Re: oid2name core dump
List pgsql-bugs
On Wed, 2004-12-01 at 21:41 -0700, Michael Fuhr wrote:
> % oid2name -d test -f 173181
> From database "test":
> oid2name in free(): warning: junk pointer, too low to make sense
> oid2name in free(): warning: junk pointer, too low to make sense
>   Filenode  Table Name
> ----------------------
>     173181         foo

I checked in a fix for this to HEAD; the patch is attached. I also
noticed various other brokenness in oid2name (access to uninitialized
variables, malloc() + sscanf() rather than strdup(), etc.), which I
fixed.

Thanks for the report.

-Neil


Attachment

pgsql-bugs by date:

Previous
From: "Dave Page"
Date:
Subject: Re: BUG #1319: Windows LIB file libecpg.lib not in build or package
Next
From: Alvaro Herrera
Date:
Subject: Re: oid2name core dump