Re: [HACKERS] corrupted double-linked list

2009-09-10 Thread Maarten Foqué
Thanks, you were right on. regards, Maarten On Wed, 2009-09-09 at 13:47 -0400, Tom Lane wrote: > Maarten =?ISO-8859-1?Q?Foqu=E9?= writes: > > The program crashes on PQclear(resu) with the following: > > *** glibc detected *** ./incident_relay: corrupted double-linked list: > > 0x09c459c8 *** >

Re: [HACKERS] corrupted double-linked list

2009-09-09 Thread Tom Lane
Maarten =?ISO-8859-1?Q?Foqu=E9?= 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 mo

[HACKERS] corrupted double-linked list

2009-09-09 Thread Maarten Foqué
Hello everyone, I ran into a problem writing a program using libpq, and after postin on a forum and asking it on the irc channel I was redirected here. I'll try to keep it simple so you don't have to read to much to start: The program is asynchronous using libev, using sockets and notifications