|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-2416182 ] crash in ConnectionExists when using duphandle+curl_mutli
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 11 Dec 2008 23:53:18 +0000
Bugs item #2416182, was opened at 2008-12-11 08:55
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
After some more tests, it was found that removing the handle from curl_mutli *before* duplicating it solves the problem.
A simple test to reproduce the crach written in C has been created, and is available at: http://ookoo.org/svn/snip/curl_bug/
This bug has been tested and confirmed against curl 7.19.2.
Backtrace:
0x00002b46220b7646 in ConnectionExists (data=0x6430a8, needle=0x6402b8, usethis=0x7fff88c37588) at url.c:2443
(gdb) print data->state.connc->connects[0]
On line 628 of lib/easy.c, the following code seems suspect:
if(data->state.used_interface == Curl_if_multi)
Commenting the if() (leaving only the Curl_mk_connc) fixes the crash, however I believe there must be some other reason than crashing libcurl for this if to exist.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info