cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: segment fault

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 30 Oct 2001 09:45:28 +0100 (MET)

On Tue, 30 Oct 2001, Li Zhixin wrote:

> I downloaded curl-7.9 package and installed it. Then I wrote a sample and
> ran. It reported "Segment Fault" error like following after calling
> curl_easy_perform(curl).
>
> Segmentation Fault (core dumped)

Ouch.

Most likely reason: you weren't allowed to open the "dumpit" file with that
path, so you got a 'logfile' that is NULL that you pass to libcurl. Later it
tries to fwrite() to it and then it dies.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-10-30