cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: RE: ARES

From: Giuseppe Attardi <attardi_at_di.unipi.it>
Date: Mon, 29 Sep 2003 21:20:18 +0200

>> I have run into another problem with ARES.
>> When using it cURL crashes within hash.c at the line:
>> if (comp(user, he->ptr)) {
>>
>> #0 Curl_hash_clean_with_criterium (h=0x82b4068, user=0x431343ec,
>
>This looks quite similar to the bug I reported here:
> http://curl.haxx.se/mail/lib-2003-09/0044.html
>
>If so, it should be fixed (2003-09-14) in CVS...

I tried curl7.10.8-pre2, but I got yet another error, this time in
Curl_hash_pick:

(gdb) where
#0 0x08129d42 in Curl_hash_pick (h=0x0, key=0x81d8820 "www.smau.it:80",
    key_len=15) at hash.c:198
#1 0x0812a892 in Curl_resolv (conn=0x84818b0,
    hostname=0x8481910 "www.smau.it", port=80, entry=0x42934190)
    at hostip.c:319
#2 0x0812fc98 in CreateConnection (data=0x841e0e8, in_connect=0x8426524,
    addr=0x42934924, async=0x42934957 "") at url.c:3039
#3 0x0812ff81 in Curl_connect (data=0x841e0e8, in_connect=0x8426524,
    asyncp=0x42934957 "") at url.c:3219
#4 0x0812a170 in curl_multi_perform (multi_handle=0x81ff9e0,
    running_handles=0x42934a44) at multi.c:353
#5 0x0805e4c6 in IXE::Retriever::Run (this=0x81ff8f8) at Retriever.cpp:99
#6 0x0808bdde in IXE::Thread::Main (arg=0x81ff8f8) at Common/Thread.cpp:192
#7 0x40021fef in pthread_start_thread () from /lib/i686/libpthread.so.0
#8 0x400220df in pthread_start_thread_event () from
/lib/i686/libpthread.so.0

In the caller Curl_resolv, at line:

  dns = Curl_hash_pick(data->hostcache, entry_id, entry_len+1);

data has this value:

(gdb) p *data
$2 = {hostcache = 0x0, share = 0x0, set = {err = 0x4006c580, debugdata =
0x0,
    errorbuffer = 0x0, proxyuserpwd = 0x0, proxyport = 1080, out =
0x82ce458,
    in = 0x4006c400, writeheader = 0x82ce458,
    set_url = 0x82c1c50
"http://www.smau.it/smau2003/italiano/docs/quando_come_\
prev_pop.htm", set_proxy = 0x0, use_port = 0, userpwd = 0x0, httpauth = 1,
    proxyauth = 1, set_range = 0x0, followlocation = 0, maxredirs = 0,
    set_referer = 0x0, free_referer = 0 '\0',
    useragent = 0x814120a "IXE Crawler", encoding = 0x0, postfields = 0x0,
    postfieldsize = 0, ftpport = 0x0, device = 0x0,
    fwrite = 0x80686a4 <WriteContentCallback>,
    fwrite_header = 0x8068778 <ProcessHeader>, fread = 0x804db10 <fread>,
    fprogress = 0, fdebug = 0, progress_client = 0x0,
    fpasswd = 0x8068694 <PasswdCallback>, passwd_client = 0x0, timeout =
300,
    connecttimeout = 30, ftp_response_timeout = 0, infilesize = -1,
    low_speed_limit = 500, low_speed_time = 15, set_resume_from = 0,
    cookie = 0x0, headers = 0x0, httppost = 0x0, cert = 0x0, cert_type =
0x0,
    key = 0x0, key_type = 0x0, key_passwd = 0x0, crypto_engine = 0x0,
    cookiejar = 0x0, cookiesession = 0 '\0', crlf = 0 '\0', quote = 0x0,
    postquote = 0x0, prequote = 0x0, telnet_options = 0x0,
    timecondition = CURL_TIMECOND_IFMODSINCE, timevalue = 0,
    closepolicy = CURLCLOSEPOLICY_NONE, httpreq = HTTPREQ_GET,
    customrequest = 0x0, httpversion = 0, auth_host = 0x0, krb4_level = 0x0,
    ssl = {version = 0, certverifyresult = 0, verifypeer = 1, verifyhost =
2,
      CApath = 0x0, CAfile = 0x0, random_file = 0x0, egdsocket = 0x0,
      cipher_list = 0x0, numsessions = 5, fsslctx = 0, fsslctxp = 0x0},
    proxytype = CURLPROXY_HTTP, dns_cache_timeout = 60, buffer_size = 0,
    private = 0x0, http200aliases = 0x0, ip_version = 0,
    get_filetime = 0 '\0', tunnel_thru_httpproxy = 0 '\0',
    ftp_append = 0 '\0', ftp_ascii = 0 '\0', ftp_list_only = 0 '\0',
    ftp_create_missing_dirs = 0 '\0', ftp_use_port = 0 '\0',
    hide_progress = 1 '\001', http_fail_on_error = 0 '\0',
    ftp_create_missing_dirs = 0 '\0', ftp_use_port = 0 '\0',
    hide_progress = 1 '\001', http_fail_on_error = 0 '\0',
    http_follow_location = 0 '\0',
    http_disable_hostname_check_before_authentication = 0 '\0',
    include_header = 0 '\0', http_set_referer = 0 '\0',
    http_auto_referer = 0 '\0', no_body = 0 '\0', set_port = 0 '\0',
    upload = 0 '\0', use_netrc = CURL_NETRC_IGNORED, verbose = 0 '\0',
    krb4 = 0 '\0', reuse_forbid = 0 '\0', reuse_fresh = 0 '\0',
    expect100header = 0 '\0', ftp_use_epsv = 1 '\001',
    ftp_use_eprt = 1 '\001', no_signal = 1 '\001', global_dns_cache = 0
'\0'},
  change = {
    url = 0x82c1c50
"http://www.smau.it/smau2003/italiano/docs/quando_come_prev\
_pop.htm", url_alloc = 0 '\0', url_changed = 1 '\001', proxy = 0x0,
    proxy_alloc = 0 '\0', referer = 0x0, referer_alloc = 0 '\0',
    cookielist = 0x0}, cookies = 0x0, progress = {lastshow = 1064861939,
    size_dl = 73267, size_ul = 0, downloaded = 0, uploaded = 0,
    current_speed = 0, callback = 0 '\0', width = 0, flags = 80,
    timespent = 0, dlspeed = 0, ulspeed = 0, t_nslookup = 0, t_connect = 0,
    t_pretransfer = 0, t_starttransfer = 0, t_redirect = 0, start = {
      tv_sec = 1064861939, tv_usec = 950283}, t_startsingle = {
      tv_sec = 1064861939, tv_usec = 950278}, speeder = {0, 0, 0, 0, 0, 0},
    speeder_time = {{tv_sec = 1064861939, tv_usec = 920610}, {tv_sec = 0,
        tv_usec = 0}, {tv_sec = 0, tv_usec = 0}, {tv_sec = 0, tv_usec = 0},
{
        tv_sec = 0, tv_usec = 0}, {tv_sec = 0, tv_usec = 0}}, speeder_c =
0},
  state = {used_interface = Curl_if_multi, keeps_speed = {tv_sec =
1064861939,
      tv_usec = 920609}, connects = 0x8426500, numconnects = 5,
    headerbuff = 0x84263f8 "Content-Type:
application/x-shockwave-flash\r\n",
    headersize = 256,
    buffer = "HTTP/1.1 200 OK\r\nDate: Mon, 29 Sep 2003 19:01:17
GMT\r\nServer:\
 Apache\r\nLast-Modified: Mon, 29 Sep 2003 12:24:22 GMT\r\nETag:
\"7c1c2-11e33-\
3f782476\"\r\nAccept-Ranges: bytes\r\nContent-Length:
73267\r\nConnectio"...,
    uploadbuffer = '\0' <repeats 16384 times>, current_speed = -1,
    this_is_a_follow = 0 '\0', auth_host = 0x0, session = 0x0, sessionage =
0,
    scratch = 0x0, errorbuf = 0 '\0', prev_signal = 0, allow_port = 1
'\001',
    digest = {nonce = 0x0, cnonce = 0x0, realm = 0x0, algo = 0},
    authstage = 0, authwant = 0, authavail = 0, areschannel = 0x0}, info = {
    httpcode = 0, httpproxycode = 0, httpversion = 0, filetime = -1,
    authstage = 0, authwant = 0, authavail = 0, areschannel = 0x0}, info = {
    httpcode = 0, httpproxycode = 0, httpversion = 0, filetime = -1,
    header_size = 0, request_size = 0, proxyauthavail = 0, httpauthavail =
0,
    contenttype = 0x0}}

-- Beppe

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-29