Re: libpq incompatibility - Mailing list pgsql-bugs

From Tom Lane
Subject Re: libpq incompatibility
Date
Msg-id 17763.1059054363@sss.pgh.pa.us
Whole thread Raw
In response to libpq incompatibility  ("Admin Gaston" <admin@intergamesclub.com>)
List pgsql-bugs
"Admin Gaston" <admin@intergamesclub.com> writes:
> When the program is running for a while, it finish with segmentation fault =
> (core dumped).

> #0  0x420742e2 in _int_malloc () from /lib/tls/libc.so.6
> #1  0x4207360b in malloc () from /lib/tls/libc.so.6
> #2  0x400278b3 in PQmakeEmptyPGresult () from /usr/lib/libpq.so.3

This looks like something has tromped on malloc's private data
structures --- that is, it wrote outside the boundaries of a malloc'd
data object.  Check your code for buffer overruns.  Also check for
something that didn't get recompiled after a change in a struct
declaration it depended on.

I doubt that it's libpq's problem per se.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Thomas Behr"
Date:
Subject: Re: Small problem in contrib/dbase/dbf2pg.c
Next
From: Adrian Calvin
Date:
Subject: When "psql -l" is invoked from prompt and not completed, no other user can create a database..