Bugs item #2218480, was opened at 2008-11-03 10:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2218480&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: 5
Private: No
Submitted By: Igor (ketamin)
Assigned to: Daniel Stenberg (bagder)
Summary: crash in create_conn while reusing connection
Initial Comment:
curl-7.19.1-20081103, Windows
My application sends request in non-blocking mode (using MULTI / curl_multi_socket API).
It creates 2 easy objects and adds them to the multi object in loop.
When the second easy is handled, the application crashes in create_conn function,
while trying to reuse the connection created as a result of handling of the first easy.
The crash occurs in "strcpy(data->info.ip, conn->ip_addr_str);" because the reused connection still has no resolved address (conn->ip_addr_str is NULL).
Notes:
1. The problem is not reproduced constantly
2. The problem is not reproduced if the verbose mode is on
3. A very few additional printf()-s cause the problem not to be reproduced
Question: why does ConnectionExists() doen't checks the check->ip_addr_str if the canPipeline is true?
The attached are setup.h and screenshot of the crash with trace
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2218480&group_id=976
Received on 2008-11-03