curl-library
Curl_resolv_timeout crash
Date: Tue, 7 May 2013 12:00:46 -0400
libcurl: 7.21.4 (no threaded resolver, no c-ares)
OS: RHEL (2.6.18-164.el5 x86_64)
CURLOPT_DNS_USE_GLOBAL_CACHE 1
CURLOPT_DNS_CACHE_TIMEOUT -1 //cache never expires
My application polls a webpage using a curl handle.
Then it calls curl_easy_duphandle(pollingCurlHandle) one or more times, and
launches one or more threads.
Each thread uses its own duplicate handle to download a file.
Intermittently my application crashes in Curl_resolv_timeout (see below);
conn, data addresses in Curl_resolv_timeout seems invalid.
Since I'm enabling never expiring DNS cache, why would libcurl call
Curl_resolv_timeout ?
#0 0x00002b6f987d3ff4 in addbyter (output=110, data=0x435037d0) at
mprintf.c:1020
#1 0x00002b6f987d2e46 in dprintf_formatf (data=0x435037d0,
stream=0x2b6f987d3fbb <addbyter>,
format=0x2b6f987fd293 "name lookup timed out", ap_save=0x43503820) at
mprintf.c:678
#2 0x00002b6f987d4079 in curl_mvsnprintf (buffer=0x810 <Address 0x810 out
of bounds>, maxlength=16384,
format=0x2b6f987fd293 "name lookup timed out", ap_save=0x43503820) at
mprintf.c:1038
#3 0x00002b6f987b74ae in Curl_failf (data=0x0, fmt=0x2b6f987fd293 "name
lookup timed out") at sendf.c:173
#4 0x00002b6f987a921e in Curl_resolv_timeout (conn=0x4b47485f31305248,
hostname=0x6564616f <Address 0x6564616f out of bounds>,
port=1282307951, entry=0x0, timeoutms=826755911) at hostip.c:611
#5 0x0000003f58108eb2 in dl_iterate_phdr () from /lib64/libc.so.6
#6 0x0000003f5b407053 in ?? () from /lib64/libgcc_s.so.1
-- Pankaj Takawale
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-07