cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Crash in curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 16 Feb 2008 00:35:51 +0100 (CET)

On Sat, 16 Feb 2008, Andreas Volz wrote:

> I get a crash sometimes when calling curl_easy_perform() from my
> application. Not sure why it happens. Maybe it's a memory overwrite from my
> application, because my download function works everytime from my unit
> tests. But it fails in the real application. See here the backtrace:

[...]

> #0 Curl_http_done (conn=0x83670b8, status=CURLE_OK, premature=false)
> at http.c:1615

What is going on at that particular line where the crash occurs?

>> curl-config --version
> libcurl 7.16.4

[...]

> The really interesting thing is that my application works on a second Linux
> system with curl-7.17.1 installed. So maybe it's a curl problem?

I don't understand. Is the problem on 7.16.4 or on 7.17.1?

What if you try 7.18.0, does that show the problem as well?

Seeing you run on Linux, have you tried running your app with valgrind?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-02-16