cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1511485 ] curl + c-ares bug

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sat, 24 Jun 2006 21:46:36 -0700

Bugs item #1511485, was opened at 2006-06-23 10:46
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1511485&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: crash
Status: Open
Resolution: None
Priority: 8
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: curl + c-ares bug

Initial Comment:
Lines from core dump:

Core was generated by `./lispa test'.
Program terminated with signal 11, Segmentation fault.
#0 0xb7db00ca in Curl_hash_add (h=0x18, key=0xa859a510
"\210Нn╗\002:-1469125112", key_len=18, p=0xa8591118) at
hash.c:153
153 struct curl_llist *l = FETCH_LIST(h, key,
key_len);
(gdb) whe
#0 0xb7db00ca in Curl_hash_add (h=0x18, key=0xa859a510
"\210Нn╗\002:-1469125112", key_len=18, p=0xa8591118) at
hash.c:153
#1 0xb7d9332e in Curl_cache_addr (data=0x18,
addr=0x18, hostname=0x18 <Address 0x18 out of bounds>,
port=18) at hostip.c:361
#2 0xb7db3949 in Curl_addrinfo4_callback
(arg=0xa86eeb98, status=0, hostent=0x18) at hostasyn.c:129
#3 0xb7db6531 in end_hquery (hquery=0xa86d1430,
status=18, host=0x8) at ares_gethostbyname.c:187
#4 0xb7db69f7 in host_callback (arg=0xa86d1430,
status=0, abuf=0xb323aa87 "\"B\201\200", alen=122) at
ares_gethostbyname.c:169
#5 0xb7dba2ae in qcallback (arg=0xa86608c8,
status=<value optimized out>, abuf=0xb323aa87
"\"B\201\200", alen=122) at ares_query.c:111
#6 0xb7db56f8 in end_query (channel=0xa863e4c8,
query=0x12, status=8, abuf=0x18 <Address 0x18 out of
bounds>, alen=24) at ares_process.c:693
#7 0xb7db5c73 in process_answer (channel=0xa863e4c8,
abuf=0xb323aa87 "\"B\201\200", alen=122, whichserver=0,
tcp=0, now=1151109639) at ares_process.c:373
#8 0xb7db61e8 in ares_process (channel=0xa863e4c8,
read_fds=0xb323ad54, write_fds=0xb323acd4) at
ares_process.c:287
#9 0xb7db3453 in Curl_is_resolved (conn=0xa85838c8,
dns=0xb323ae18) at hostares.c:146
#10 0xb7d935a2 in Curl_resolv (conn=0xa85838c8,
hostname=0xa8510728 "www.jasonhendricks.com", port=80,
entry=0xb323b330) at hostip.c:468
#11 0xb7da5226 in Curl_connect (data=0xa8044ed0,
in_connect=0xb323b3c4, asyncp=0xb323b38b "",
protocol_done=0xb323b38a "\001") at url.c:3752
#12 0xb7dabcb4 in Curl_connect_host (data=0xa8044ed0,
conn=0xb323b3c4) at transfer.c:2064
#13 0xb7dadda0 in Curl_perform (data=0xa8044ed0) at
transfer.c:2153
#14 0xb7dae49c in curl_easy_perform (curl=0xa8044ed0)
at easy.c:445
#15 0x0805e288 in curl_easy_geturlMemoryStruct
(url=0xb323b5e4
"http://www.jasonhendricks.com/category/google-news/",
mem=0xb323b58c, useproxy=0 '\0')
    at lcurlutils.c:120

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2006-06-24 21:46

Message:
Logged In: NO

> And most importantly: did you try this with libcurl 7.15.4?
No I didn't try with libcurl 7.15.4 yet.

> Can you make this fail with a small stand-alone program we
can use to debug this with?
I've made it, and checking now.

> Do you use anything else but plain HTTP URLs?
Yes, I use following curl_easy_setopt options:
CURLOPT_NOPROGRESS, CURLOPT_NOSIGNAL, CURLOPT_TIMEOUT,
CURLOPT_CONNECTTIMEOUT, CURLOPT_INTERFACE,
CURLOPT_USERAGENT, CURLOPT_WRITEFUNCTION, CURLOPT_WRITEDATA .

> What if you not run it multi-threaded, does it still fail?
Didn't try, it will take months to check.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2006-06-24 14:58

Message:
Logged In: YES
user_id=1110

And most importantly: did you try this with libcurl 7.15.4?

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2006-06-23 13:58

Message:
Logged In: YES
user_id=1110

Can you make this fail with a small stand-alone program we
can use to debug this with?

Do you use anything else but plain HTTP URLs?

What if you not run it multi-threaded, does it still fail?

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2006-06-23 10:52

Message:
Logged In: NO

This crash was in multithreaded program after about 80-100k
other URLs.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2006-06-23 10:51

Message:
Logged In: NO

System info:

localhost:/# curl-config --version
libcurl 7.15.3
localhost:/# uname -a
Linux localhost 2.6.16.19 #1 PREEMPT Fri Jun 23 13:28:08 CDT
2006 i686 GNU/Linux
localhost:/#

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1511485&group_id=976
Received on 2006-06-25

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET