cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl crash when using sftp with socks

From: Markus Moeller <huaraz_at_moeller.plus.com>
Date: Tue, 2 Sep 2008 21:08:34 +0100

Hi,

I try to use curl with sftp through a socks proxy as follows

curl --socks5 socks-server -u user -v sftp://shell.sf.net

but it crashes because the sftp_handle is 0.

(gdb) where
#0 libssh2_sftp_write (handle=0x0, buffer=0xbfa5ea00 "\005\001", count=3)
at sftp.c:1330
#1 0xb7ee0761 in Curl_sftp_send (conn=0x80773f0, sockindex=0,
mem=0xbfa5ea00, len=3) at ssh.c:2379
#2 0xb7eba4e6 in Curl_write (conn=0x80773f0, sockfd=8, mem=0xbfa5ea00,
len=3, written=0xbfa5eca4) at sendf.c:365
#3 0xb7edaf14 in Curl_SOCKS5 (proxy_name=0x0, proxy_password=0x0,
hostname=0x8077898 "shell.sf.net", remote_port=22, sockindex=0,
conn=0x80773f0) at socks.c:435
#4 0xb7ec328d in Curl_connect (data=0x806b540, in_connect=0xbfa5ed70,
asyncp=0xbfa5ed77, protocol_done=0xbfa5ed76) at url.c:2662
#5 0xb7ecfbaa in Curl_perform (data=0x806b540) at transfer.c:2291
#6 0xb7ed080d in curl_easy_perform (curl=0x806b540) at easy.c:520
#7 0x0804f803 in main (argc=Cannot access memory at address 0x3
) at main.c:4692

I use:

/opt/curl/bin/curl -V
curl 7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8a zlib/1.2.3
libssh2/0.18
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: IPv6 Largefile NTLM SSL libz

Is this a known problem and does a fix exist already ?

Thank you
Markus

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-09-02