cURL / Mailing Lists / curl-library / Single Mail


Crash when 'verbose' is on

From: Tom Mattison <>
Date: Fri, 6 Feb 2004 17:41:51 -0500

Greetings list!

  I'm back looking at libcurl after quite some time away. I've been using
v7.9.x for FTP transfers without any problem. I've started looking at the
latest curl in hopes of taking advantage of the FTPS support.

  Anyway, I'm running OS X, and building/linking libcurl into our project as
a dynamic library. v7.11.0 appears to crash somewhere in the library when I
have verbose 'on'. Anyone have experience with this? Is this related to a
kown problem? A snippet of the steps I'm using are:

                curl_easy_setopt( cHandle, CURLOPT_ERRORBUFFER, errorMsg );
                // Switch on full protocol/debug output
                // Remove after debugging
                curl_easy_setopt( cHandle, CURLOPT_VERBOSE, VERBOSE_STATE);

                curl_easy_setopt( cHandle, CURLOPT_PROGRESSFUNCTION,
my_progress_notification );
                curl_easy_setopt( cHandle, CURLOPT_FRESH_CONNECT, 0 );
                curl_easy_setopt( cHandle, CURLOPT_FORBID_REUSE, 0 );
                curl_easy_setopt( cHandle, CURLOPT_FTP_USE_EPSV, 1L );
                curl_easy_setopt( cHandle, CURLOPT_UPLOAD, TRUE );
                curl_easy_setopt( cHandle, CURLOPT_USERPWD, [authString cString] );
                curl_easy_setopt( cHandle, CURLOPT_URL, [fullPath cString] );

                // Specify the source *FILE
                curl_easy_setopt( cHandle, CURLOPT_INFILE, srcFile );
                curl_easy_setopt( cHandle, CURLOPT_INFILESIZE, srcFileSize );

                result = curl_easy_perform(cHandle);

  The curious thing is that this same process works when verbose logging is
off. I'll look deeper into this next week, but if someone can save me some
time, I'd appreciate it!


Tom Mattison
Econ Technologies, Inc.
Received on 2004-02-06