cURL / Mailing Lists / curl-users / Single Mail

curl-users

libcurl crash in using scp

From: Priyanka Shah <priyanka_at_insiemenetworks.com>
Date: Wed, 5 Feb 2014 18:06:57 -0800

Hi,
I am trying to use scp to transfer a file to a remote destination using
libcurl. I notice that it crashes with the following stack trace:

#0 0x00007fc6b60a101d in libssh2_scp_send_ex () from
/usr/lib64/libssh2.so.1
#1 0x00007fc6bcb1a70e in ssh_statemach_act ()
   from /mgmt/usr/lib64/libcurl.so.4
#2 0x00007fc6bcb1c3b2 in ssh_easy_statemach ()
   from /mgmt/usr/lib64/libcurl.so.4
#3 0x00007fc6bcb1cbc0 in ssh_do () from /mgmt/usr/lib64/libcurl.so.4
#4 0x00007fc6bcaf68db in Curl_do () from /mgmt/usr/lib64/libcurl.so.4
#5 0x00007fc6bcb09791 in Curl_do_perform () from
/mgmt/usr/lib64/libcurl.so.4
...

Since I have ssh running on a non-standard port, I set this as URL using
curl_setopt functions.
scp://<IP>:<port>//tmp/files/export.tgz

Using scp on command line works:
scp -P <port> source <IP>://tmp/files/export.tgz

I know libcurl supports SSH/SSL since it was compiled with --with-libssh2
options.
root_at_apic1:/var/run/mgmt# curl-config --feature
SSL
IPv6
libz
IDN
NTLM

*root_at_apic1:/var/run/mgmt# curl --version*
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.28.1 OpenSSL/1.0.1e
zlib/1.2.3 libidn/1.18 libssh2/1.2.2
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM SSL libz

How can I figure out why libcurl crashed?
Thanks,
Priyanka.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-06