"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