cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Segfault during curl_easy_init()

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 1 Apr 2005 10:51:34 +0200 (CEST)

On Fri, 1 Apr 2005, Cody Maggard wrote:

> It only seems to crash when I try to assign the return value of
> curl_easy_init() to session though; when I take out the assignment part and
> just leave the function call, the program prints out "Init error" and quits
> like it should.

But then it doesn't crash within libcurl, but in your app and the problem is
thus in your domain.

> I'm using Dev-Cpp and the mingw32 ssl devel build dll, no warnings or
> anything like that upon compile.
>
> Any ideas as to what might be going wrong (or I might be doing wrong) are
> appreciated.

I'd suggest using a debugger and single-step through the code and watch
everything carefully when you move over the crashing point.

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