cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: curl related (?) crashes

From: Guy Federovsky <guyfeder_at_gmail.com>
Date: Wed, 4 Jul 2007 09:23:58 +0300

It appears we were misusing curl in the following way:
We wanted to get some kind of an error message upon a transfer error. So, we
used the curl_easy_setopt method to set an error buffer of a curl handle.
Only problem was that the passed buffer was defined on a certain method
stack and so was undefined once the method exited. Therefore, in the
following error, curl tried to update the error buffer, and caused a crash.

Our fault, sorry.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Wednesday, July 04, 2007 12:33 AM
To: libcurl development
Subject: Re: curl related (?) crashes

On Tue, 3 Jul 2007, Guy Federovsky wrote:

> Lately, when trying to work with un-stable hosts, my application crashes
> quite consistently.

What does un-stable mean in this context?

> The call stack I get using gdb (when analyzing the core) is full of ????
all
> the way.

That looks like a non-debug build or similar.

> Am I doing something wrong ?

Perhaps. If you show us a full source code that crashes we could possibly
tell. But before you do that, I would really really prefer that you test
your
code against the most recent libcurl version first to see if that fixes your

problem or not.

> Is this a well-known problem in CURL ?

No, but it might of course be a bug that is already fixed.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-07-04