|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-2884791 ] Curl_llist_insert_next crash (7.19.5)
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 02 Nov 2009 16:26:03 +0000
Bugs item #2884791, was opened at 2009-10-23 10:56
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
This might be related to #1833734: When running load tests with libcurl, my application is randomly crashing. It looks like a datarace from the callstack:
> libcurl.dll!Curl_llist_insert_next(curl_llist * list=0x17798e60, curl_llist_element * e=0x00000000, const void * p=0x14237d50) Line 77 + 0x5 bytes C
Although the next element, e, in the callstack's param values is NULL, inside Curl_llist_insert_next, list->size is non-zero and has branched to the statement, ne->next = e->next. Looking at list argument, list->tail is no longer NULL as well, even though we had originally called,
if(Curl_llist_insert_next(l, l->tail, he)) {.
passing l->tail as the parameter e.
This crash is in the gethostbynamethread, and I can see the only other thread that accesses Curl_hash_add is in Curl_sh_entry for multi.c. Both thread were likely adding the "localhost:3128" dns entry (that is what I see in the gethostbynamethread).
Am I missing some synchronization (I can see that the hostname thread does an acquire [acquire_thread_sync(&tsd)])? I have the core dump saved if you need more information.
Thanks,
----------------------------------------------------------------------
>Comment By: Steve Chan (schan8)
Message:
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
64. The threaded resolver used in libcurl on Windows has some kind of
There have been some work on a fix for this, but very few windows people
http://curl.haxx.se/mail/lib-2009-09/0316.html
I'm sure he'd appreciate someone else joining in to help and to test and
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info