cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: libcurl crash in using scp

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 6 Feb 2014 09:08:47 +0100

On Wed, Feb 05, 2014 at 06:06:57PM -0800, Priyanka Shah wrote:
> 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
> ...

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

gdb is a good place to start. But before you go digging to deeply into the
problem, try using the latest releases of curl and libssh2. You are running a
version of libcurl that is 27 releases old, and a version of libssh2 that is 12
releases old. There is an excellent chance that whatever issue you're
experiencing was solved many years ago.

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