cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Possible libcurl bugs

From: Joshua Kwan <jkwan_at_vmware.com>
Date: Sat, 19 Sep 2009 10:23:26 -0700

Hey Peter,

On 9/19/09 02:37, "Peter Soxberger" <Peter.Soxberger_at_gmx.net> wrote:
> 1) If I use fopen() before calling
> curl_easy_setopt(easyhandle,CURLOPT_PASSWORD,password); I always get a crash.
> Ok, the workaround is easy because I only have to place the fopen() after the
> mentioned line.
>
> 2) If I use CURLOPT_VERBOSE with the ftp upload function, libcurl always tries
> to write at position 0x00000000 => application crashes
> I found no working workaround!
> When downloading a file from an ftp server I can use CURLOPT_VERBOSE without
> any problems...

These generally sound like problems relating to mismatched CRT libraries.
e.g. your binary proper is compiled with the release CRT msvcrxx.dll but
libcurl is compiled with the debug CRT msvcrxxd.dll, or vice versa. Failures
in functions related to writing files are generally indicative of this.

You can visualize the dependency by compiling a binary and dragging it into
Dependency Walker: http://www.dependencywalker.com/

HTH
-Josh
Received on 2009-09-19