cURL / Mailing Lists / curl-library / Single Mail

curl-library

Crash during gethostbyname in libcurl

From: Rom Walton <romw_at_romwnet.org>
Date: Wed, 10 Jan 2007 18:12:01 -0500

Thanks for everyone's help with our previous issue dealing with NTLM
authentication, your suggestions seemed to have worked, we haven't had
any new reports about it.

 

We have had an ongoing issue where boinc.exe crashes doing a DNS lookup,
we really aren't quite sure about the repro case yet as we haven't been
able to reproduce it yet.

 

At first it would come and go, one day several hundred/thousand people
would bump into it, the next everyone would be good for months.

 

In recent months we have had a couple projects sign on board who use a
DDNS service and the problem has surfaced again. There servers change
their IP address every couple of days. Clients should be able to stay up
until the next round of software upgrades.

 

I should point out that as far as I am aware, this is only happening on
Windows. This call stack below was generated by our client software
that was using libCurl 7.15.3, our current generation of software uses
7.15.5. We still see this crash on our latest clients, but so far none
of the clients have returned a complete stack trace(clients were unable
to download the symbol files for some reason).

 

Have you all seen this issue before? Is it fixed in 7.16.0?

 

----- Rom

*** UNHANDLED EXCEPTION ****
Reason: Access Violation (0xc0000005) at address 0x0033B014 read attempt
to address 0x00000008

*** Dump of the (offending) thread: ***
eax=014a2b38 ebx=00fe48a8 ecx=00000000 edx=00fe4998 esi=013c44d0
edi=00fe4998
eip=0033b014 esp=01c3fee0 ebp=015159b0
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202

ChildEBP RetAddr Args to Child
01c3fee0 0033adcd 00fe4998 00000000 013c44d0 00000015
libcurl!Curl_llist_insert_next+0x5
(c:\boincsrc\sdks\curl\lib\llist.c:78) FPO: [3,0,0]
01c3ff00 0032f7b3 00fe48a8 00fe4998 00000015 015159b0
libcurl!Curl_hash_add+0xb (c:\boincsrc\sdks\curl\lib\hash.c:165) FPO:
[4,0,0]
01c3ff24 0032fae5 01540990 014a5668 01362968 00000050
libcurl!Curl_cache_addr+0x19 (c:\boincsrc\sdks\curl\lib\hostip.c:361)
FPO: [4,1,0]
01c3ff48 0032fb52 003c7018 0032fd7c 014ed048 00000000
libcurl!addrinfo_callback+0x15
(c:\boincsrc\sdks\curl\lib\hostasyn.c:131) FPO: [0,1,0]
01c3ff50 0032fd7c 014ed048 00000000 003c7018 00000000
libcurl!Curl_addrinfo4_callback+0x12
(c:\boincsrc\sdks\curl\lib\hostasyn.c:161) FPO: [3,0,0]
01c3ff80 7c349565 00000000 00000000 0012ed08 01514928
libcurl!gethostbyname_thread+0x0
(c:\boincsrc\sdks\curl\lib\hostthre.c:335) FPO: [1,4,0]
01c3ffb4 7c80b683 01514928 00000000 0012ed08 01514928
MSVCR71!__endthreadex+0x0 (c:\boincsrc\sdks\curl\lib\hostthre.c:335)
01c3ffec 00000000 7c3494f6 01514928 00000000 00000000
kernel32!_BaseThreadStart_at_8+0x0
(c:\boincsrc\sdks\curl\lib\hostthre.c:335)

Exiting...
Received on 2007-01-11