cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl crash when using sftp with socks

From: Markus Moeller <huaraz_at_moeller.plus.com>
Date: Wed, 3 Sep 2008 10:15:04 +0000 (UTC)

Daniel Stenberg <daniel <at> haxx.se> writes:

>
> On Tue, 2 Sep 2008, Markus Moeller wrote:
>
> > curl --socks5 socks-server -u user -v sftp://shell.sf.net
> >
> > but it crashes because the sftp_handle is 0.
>
> ...
>
> > Is this a known problem and does a fix exist already ?
>
> Yes and yes. The cure is called version 7.19.0!
> -------------------------------------------------------------------
> 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
>
>

It doesn't seem to be fixed.

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

[Thread debugging using libthread_db enabled]
[New Thread -1212672336 (LWP 28176)]
Enter host password for user 'user':
* About to connect() to proxy socks-server port 1080 (#0)
* Trying x.x.x.x... connected

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212672336 (LWP 28176)]
libssh2_sftp_read (handle=0x0, buffer=0xbfabaa80 "\005\001", buffer_maxlen=2) at
sftp.c:960
960 LIBSSH2_SFTP *sftp = handle->sftp;
(gdb) where
#0 libssh2_sftp_read (handle=0x0, buffer=0xbfabaa80 "\005\001",
buffer_maxlen=2) at sftp.c:960
#1 0xb7f25881 in Curl_sftp_recv (conn=0x8078490, sockindex=0, mem=0xbfabaa80
"\005\001", len=2) at ssh.c:2413
#2 0xb7efcaad in Curl_read (conn=0x8078490, sockfd=6, buf=0xbfabaa80
"\005\001", sizerequested=2, n=0xbfaba9f4)
    at sendf.c:600
#3 0xb7f1fdd8 in blockread_all (conn=0x8078490, sockfd=6, buf=0xbfabaa80
"\005\001", buffersize=2, n=0xbfabad28,
    conn_timeout=299999) at socks.c:91
#4 0xb7f20111 in Curl_SOCKS5 (proxy_name=0x0, proxy_password=0x0,
hostname=0x8078990 "shell.sf.net", remote_port=22,
    sockindex=0, conn=0x8078490) at socks.c:464
#5 0xb7f063b1 in Curl_connect (data=0x806c540, in_connect=0xbfabadf0,
asyncp=0xbfabadf7, protocol_done=0xbfabadf6)
    at url.c:2701
#6 0xb7f1304a in Curl_perform (data=0x806c540) at transfer.c:2357
#7 0xb7f13d1d in curl_easy_perform (curl=0x806c540) at easy.c:538
#8 0x0804f98c in main (argc=33554693, argv=0xbfabb464) at main.c:4792

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-03