cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: segfault in Curl_hostcache_prune
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 9 Sep 2005 23:33:22 +0200 (CEST)
On Fri, 9 Sep 2005, Jonathan Cobb wrote:
> I'm writing an apache module that uses libcurl internally. We're using the
I assume that's a typo and you mean 7.14.1.
> Sometimes (infrequently and difficult to reproduce), a segfault occurs in
> Somehow, the "data" pointer is null. I added
It might hide the problem for you, but I would guess you'll get a crash
> But I'm wondering if this is the right thing to do. Under what conditions
Let me first quickly describe how the two main structs within libcurl are
There's the SessionHandle struct. That is the main one, which is returned as a
Within the 'data' struct, there is a list of 'struct connectdata'. One such
Within the connectdata struct, there's a pointer called 'data' that points
In the backstrace you showed, the 'data' member within the connectdata struct
Calling the cleanup twice might cause something like that, or possibly if
I have not seen any similar bug getting reported nor have this area of the
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-09-09
These mail archives are generated by hypermail.
Page updated November 12, 2010.
web site info