Maarten =?ISO-8859-1?Q?Foqu=E9?= <maarten(dot)foque(at)edchq(dot)com> writes:
> The program crashes on PQclear(resu) with the following:
> *** glibc detected *** ./incident_relay: corrupted double-linked list:
> 0x09c459c8 ***
This looks like a memory-stomp type of bug. There's no reason to assume
that PQclear is the cause; it's more likely the victim of a stomp that
occurred sometime earlier. I'd suggest running the app under valgrind
or electric fence or some other memory-overrun-catcher.
regards, tom lane