cURL / Mailing Lists / curl-library / Single Mail

curl-library

SCP and SFTP crash on Windows x64

From: Zhang, Jack <jack.zhang_at_credit-suisse.com>
Date: Thu, 14 Oct 2010 12:07:09 -0400

I compiled
Curl, libcurl v7.21.2 with openSSL v1.0.0a, zlib v1.2.5 libssh2 v1.2.7
successfully for both x86 and x64

Windows x64:
curl 7.21.2 (amd64-pc-win32) libcurl/7.21.2 OpenSSL/1.0.0a zlib/1.2.5
libssh2/1.2.7
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3
pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS Largefile NTLM SSL libz

Windows x86:
curl 7.21.2 (i386-pc-win32) libcurl/7.21.2 OpenSSL/1.0.0a zlib/1.2.5
libssh2/1.2.7
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3
pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS Largefile NTLM SSL libz

But when I test scp and sftp with a simple script

"curl -m 1800 -u my_id:my_pwd -k scp://nys30x-001/home/my_id/.bashrc
-o bashrc.txt"

X86 curl.exe runs correctly
X64 curl.exe crashed

Run debugger in Visual Studio 2008 Professional, got this message for
x64 code

?fprintf(config->errors, "curl: (%d) %s\n", res, errorbuffer[0]?
errorbuffer:curl_easy_strerror((CURLcode)res))
CXX0013: Error: missing operator

I think that a bug for memory allocation under x64 mode.

Other protocols run correctly for both x86 and x64

-Jack

===============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-14