cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1170 curl_easy_recv() ends in crash within Curl_recv_plain

From: Con Kolivas <ckolivas_at_users.sf.net>
Date: Thu, 10 Jan 2013 06:52:06 +0000

Alas even the workaround I had used of disabling the debugging code did not make it stable, it just delayed it and the memory trashing seemed to move elsewhere. Since my code was in production I could no longer afford these random crashes and gave up, moving from curl_easy_recv to just using plain recv() which fixed all my problems, so I have been unable to debug it any further.

---
** [bugs:#1170] curl_easy_recv() ends in crash within Curl_recv_plain**
**Status:** open
**Labels:** libcurl 
**Created:** Mon Dec 10, 2012 03:16 AM UTC by Con Kolivas
**Last Updated:** Wed Jan 09, 2013 10:50 PM UTC
**Owner:** Daniel Stenberg
In the cgminer project \( https://github.com/ckolivas/cgminer \) I am using libcurl version 7.28.1 compiled for mingw32 and using curl easy recv on the raw socket returned. Dropping internet connection on windows\* with this compiled version I get a reproducible crash on the following line:
sendf.c:353
failf\(conn-&gt;data, "Recv failure: %s", Curl\_strerror\(conn, err\)\);
Debugging is disabled in the build, but this line reliably crashes on mingw32. Commenting out the line entirely the crash goes away. This can be reproduced without dropping internet connection on windows by killing the tcp connection with currports. I don't know the exact mechanism of the crash without digging further but I suspect conn-&gt;data is dereferenced.
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/curl/bugs/1170/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/prefs/>
Received on 2013-01-10

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET