cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ares

From: Giuseppe Attardi <attardi_at_di.unipi.it>
Date: Wed, 17 Sep 2003 20:10:54 +0200

----- Original Message -----
> Date: Wed, 17 Sep 2003 09:38:34 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl Mailing list <curl-library_at_lists.sourceforge.net>
> Subject: Re: ares
> Reply-To: curl-library_at_lists.sourceforge.net
>
> On Wed, 17 Sep 2003, Giuseppe Attardi wrote:
>
> > I am testing ares, and I get a SIGSEGV in Curl_connecthost:
>
> This (multi interface + ares + non-existing host name) is a known bug in
> libcurl 7.10.7, try using the 7.10.8-pre1 release or the CVS code and this
> should be history.
>

That fixed the problem.

But another one has appeared.
I get SIGSEGV in SocketIsDead, that gets called from line

      bool dead = SocketIsDead(check->firstsocket);

in ConnectionExists. This is the value of check:

{data = 0x82783c8, connectindex = 0, protocol = 4, connect_addr = 0x0,
  serv_addr = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0},
    sin_zero = "\0\0\0\0\0\0\0"}, protostr = "http", '\0' <repeats 59
times>,
  gname = "extweb.nag.co.uk", '\0' <repeats 496 times>,
  name = 0x83739d0 "extweb.nag.co.uk",
  path = 0x8373f90 "/projects/FRISCO/santander.html",
  hostname = 0x83739d0 "extweb.nag.co.uk", port = 80, remote_port = 80,
  ppath = 0x8373f90 "/projects/FRISCO/santander.html", bytecount = 0,
  headerbytecount = 0, range = 0x0, resume_from = 0, proxyhost = 0x0,
  user = 0x8374098 "anonymous", passwd = 0x83740a8 "curl_by_daniel_at_haxx.se",
  proxyuser = 0x0, proxypasswd = 0x0, now = {tv_sec = 0, tv_usec = 0},
  created = {tv_sec = 1063821185, tv_usec = 28688}, firstsocket = -1,
  secondarysocket = -1, maxdownload = -1, ssl = {use = 0 '\0'}, ssl_config =
{
    version = 0, certverifyresult = 0, verifypeer = 1, verifyhost = 2,
    CApath = 0x0, CAfile = 0x0, random_file = 0x0, egdsocket = 0x0,
    cipher_list = 0x0, numsessions = 0, fsslctx = 0, fsslctxp = 0x0}, bits =
{
    close = 1 '\001', reuse = 0 '\0', chunk = 0 '\0', httpproxy = 0 '\0',
    user_passwd = 0 '\0', proxy_user_passwd = 0 '\0', ipv6_ip = 0 '\0',
    use_range = 0 '\0', rangestringalloc = 0 '\0', do_more = 0 '\0',
    upload_chunky = 0 '\0', getheader = 0 '\0', forbidchunk = 0 '\0',
    tcpconnect = 0 '\0'}, curl_do = 0x8143f10 <Curl_http>,
  curl_done = 0x8143e10 <Curl_http_done>, curl_do_more = 0,
  curl_connect = 0x8143d68 <Curl_http_connect>, curl_disconnect = 0,
  curl_close = 0, sockfd = 0, size = 0, bytecountp = 0x0, writesockfd = 0,
  writebytecountp = 0x0, allocptr = {proxyuserpwd = 0x0, uagent = 0x0,
    accept_encoding = 0x0, userpwd = 0x0, rangeline = 0x0, ref = 0x0,
    cookie = 0x0, host = 0x0, cookiehost = 0x0}, newurl = 0x0, proto = {
    http = 0x0, gopher = 0x0, https = 0x0, ftp = 0x0, file = 0x0,
    telnet = 0x0, generic = 0x0}, keep = {bytecount = 0, writebytecount = 0,
    contentlength = 0, start = {tv_sec = 0, tv_usec = 0}, now = {tv_sec = 0,
      tv_usec = 0}, header = 0 '\0', badheader = HEADER_NORMAL,
    headerline = 0, hbufp = 0x0, hbuflen = 0, str = 0x0, str_start = 0x0,
    end_ptr = 0x0, p = 0x0, content_range = 0 '\0', offset = 0, httpcode =
0,
    httpversion = 0, start100 = {tv_sec = 0, tv_usec = 0},
    write_after_100_header = 0 '\0', wait100_after_headers = 0 '\0',
    content_encoding = 0, timeofdoc = 0, bodywrites = 0, buf = 0x0,
    uploadbuf = 0x0, maxfd = 0, readfdp = 0x0, writefdp = 0x0, readfd = {
      __fds_bits = {0 <repeats 32 times>}}, writefd = {__fds_bits = {
        0 <repeats 32 times>}}, rkeepfd = {__fds_bits = {
        0 <repeats 32 times>}}, wkeepfd = {__fds_bits = {
        0 <repeats 32 times>}}, keepon = 0, upload_done = 0 '\0',
    ignorebody = 0 '\0'}, upload_present = 0, upload_fromhere = 0x0,
  fread = 0x804da48 <fread>, fread_in = 0x40072400, ntlm = {
    state = NTLMSTATE_NONE, nonce = "\0\0\0\0\0\0\0"}, proxyntlm = {
    state = NTLMSTATE_NONE, nonce = "\0\0\0\0\0\0\0"}, async = {
    hostname = 0x836d458 "extweb.nag.co.uk", port = 80, dns = 0x0,
    done = 1 '\001', status = 4}}

-- Beppe

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