curl-library
libcurl crash - accessing a bad connection object..
Date: Tue, 20 Jul 2010 10:51:14 +0530
Hi,
I am using libcurl for http client development.
I got into an issue, where, libcurl crashed when the server was not
responding to the request. Following is the backtrace:
#0 0x00000000004ba453 in Curl_splay (i={tv_sec = 46912719814776, tv_usec =
64},
t=0x1313131313131313) at splay.c:53
#1 0x00000000004bab63 in Curl_splayremovebyaddr (t=0x1313131313131313,
removenode=0x2aaab8008950,
newroot=0x2aaac06fedd0) at splay.c:297
#2 0x00000000004b79f8 in Curl_expire (data=0x2aaab8000078, milli=0) at
multi.c:2297
#3 0x00000000004d79ac in Curl_done (connp=0x4200cd98,
status=CURLE_GOT_NOTHING, premature=false)
at url.c:4849
#4 0x00000000004e7ea3 in Curl_perform (data=0x2504f068) at transfer.c:2704
#5 0x00000000004b0eed in curl_easy_perform (curl=0x2504f068) at easy.c:557
Looking into the libcurl code, it is apparant that, the curl connection
object has been freed, and the curl apparantly accesses the freed connection
object.
My application has not yet freed the connection and there clear evidences of
the connection being intact. It seems to be the case of curl freeing up the
connection internally.
Is it a problem with curl or some misconfiguration of the curl parameter?
Thanks,
Ram
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-07-20