cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl crashing.

From: Mark Van Orman <mark_at_icsaccess.com>
Date: Wed, 26 May 2004 15:18:21 -0500

Hi,
    I'm trying to use CURL under FreeBSD 4.7, but it keeps crashing. Gdb produces the following message #0 0x286a22c4 in sysctl () from /usr/lib/libc.so.4.

Curl version:
curl 7.11.1 (i386-portbld-freebsd4.7) libcurl/7.11.1 OpenSSL/0.9.6g zlib/1.1.3
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: SSL libz NTLM Largefile

Below is my program and its output:

int main()
   {
      try
         {

            CURL * pCurlHandle = curl_easy_init();

            if(pCurlHandle)
               cout << "handle successfully created." << endl;
            else
               exit;

            curl_easy_setopt (pCurlHandle, CURLOPT_URL, "curl.haxx.se");
            curl_easy_setopt (pCurlHandle, CURLOPT_VERBOSE, 1);
            cout << "before performing" << endl;
            CURLcode postResult = curl_easy_perform(pCurlHandle);
            cout << "after performing" << endl;

            curl_easy_cleanup(pCurlHandle);

            return 0;
         }
      catch(...)
         {
            cout << "caught something" << endl;
         }
   }

===========output============================

handle successfully created.
before performing
* About to connect() to curl.haxx.se port 80
Memory fault (core dumped)

Any ideas on what might be going on?

Thanks for any kind of help,

Mark
Received on 2004-05-26