cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi_runsingle referencing freed connection

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Mon, 8 Jan 2007 12:52:12 -0600

On 1/7/07, Daniel Stenberg <daniel_at_haxx.se> wrote:

> Does it always happen at the same place in libcurl for you?

No, not always - sometimes I get a segfault in SSL_read() ???

At first glance, that makes no sense at all, since the proxy
*never* handles SSL requests.

But it's not as strange as it seems, considering the debug version
of curl_dofree() fills the connection struct with 0x13's and when the
previously freed connection hits line 509 of sendf.c:

if(conn->ssl[num].use) {

 - the 0x13 evaluates to true.

Attached is a snippet of the gdb output...

Received on 2007-01-08