curl-users
Re: libcurl closing fd zero
Date: Tue, 1 Jul 2014 21:17:56 -0700
I see this behaviour with libcurl-7.28.1
trunk9-leaf2# curl --version
curl 7.28.1 (i586-wrs-linux-gnu) libcurl/7.28.1 OpenSSL/1.0.1e zlib/1.2.6
libssh2/1.4.2
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtsp scp sftp smtp smtps telnet tftp
Features: NTLM NTLM_WB SSL libz TLS-SRP
On Tue, Jul 1, 2014 at 9:15 PM, Priyanka Shah <priyanka_at_insiemenetworks.com>
wrote:
> Hi,
> I see some strange behaviour when using libcurl to send data over scp.
> Whenever authentication fails (curl error code 67), I see that curl frees
> up fd zero (calls close(0)). And this causes unexpected behaviour in my
> application.
>
> Here is the trace I got while debugging the issue:
>
> #4 0xf3930a45 in ?? () from /usr/lib/libssh2.so.1
>
> #5 0xf3930fcc in libssh2_agent_disconnect () from /usr/lib/libssh2.so.1
>
> #6 0xf3ec63dc in ssh_statemach_act () from /usr/lib/libcurl.so.5
>
> #7 0xf3ec8753 in ssh_easy_statemach () from /usr/lib/libcurl.so.5
>
> #8 0xf3ec8c34 in ssh_connect () from /usr/lib/libcurl.so.5
>
> #9 0xf3ea7932 in Curl_protocol_connect () from /usr/lib/libcurl.so.5
>
> #10 0xf3ea7c12 in Curl_setup_conn () from /usr/lib/libcurl.so.5
>
> #11 0xf3ea7ca6 in Curl_connect () from /usr/lib/libcurl.so.5
>
> #12 0xf3eb3d11 in Curl_do_perform () from /usr/lib/libcurl.so.5
>
> #13 0xf3eb4a43 in curl_easy_perform () from /usr/lib/libcurl.so.5
>
>
> Any help will be appreciated.
>
> 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-07-02