|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1911069 ] Race Condition in Curl_resolv(hostip.c) (dns cache)
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 11 Mar 2008 04:58:25 -0700
Bugs item #1911069, was opened at 2008-03-10 16:31
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
I've noticed a bug in Curl_resolv which can lead to crash of curl(or bad behaviour)(I've checked versions 7.16.1 and 7.18.0, but I think older versions are also buggy). Look at hostip.c:423 (curl 7.18.0). Consider we're sharing dns cache between 2 threads(A and B).
My solution for that, diff hostip_old.c hostip.c (v7.18.0) is attached. Not sure it's ok, but it worked on 7.16.1 (at least I didn't get curl crashed).
Regards, Andrew..
----------------------------------------------------------------------
>Comment By: Andrey (imercury)
Message:
Not sure it's ok though. It just works in my case..
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Thanks a lot, but can you please make the diff with -u and submit such a
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info