cURL / Mailing Lists / curl-users / Single Mail

curl-users

libcurl closing fd zero

From: Priyanka Shah <priyanka_at_insiemenetworks.com>
Date: Tue, 1 Jul 2014 21:15:52 -0700

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