Re: BUG #2246: Bad malloc interactions: ecpg, openssl - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #2246: Bad malloc interactions: ecpg, openssl
Date
Msg-id 23040.1139954156@sss.pgh.pa.us
Whole thread Raw
In response to BUG #2246: Bad malloc interactions: ecpg, openssl  ("Andy Klosterman" <andrew5@ece.cmu.edu>)
List pgsql-bugs
Andrew Klosterman <andrew5@ece.cmu.edu> writes:
> (gdb) print *conn
> ...
>   allow_ssl_try = 1 '\001', wait_ssl_try = 0 '\0', ssl = 0x806d1d0,
>   peer = 0x807e430,
> ...
> *** glibc detected *** corrupted double-linked list: 0x0807e428 ***

Hm, it looks like the problem is associated with whatever was allocated
just before conn->peer (which is returned by SSL_get_peer_certificate
called from open_client_SSL).  Can you get efence or some other tool to
produce a trace of malloc calls so we can determine what that is?

            regards, tom lane

pgsql-bugs by date:

Previous
From: Stephen Frost
Date:
Subject: Re: BUG #2246: Bad malloc interactions: ecpg, openssl
Next
From: "Michal Dvoracek"
Date:
Subject: BUG #2259: never ending select from selects