cURL / Mailing Lists / curl-library / Single Mail


problem with simultaneous sftp connections.

From: michele <>
Date: Wed, 10 Aug 2011 14:22:23 +0200

Hi to all.
I receive the following segmentation fault when I try to send more
different files simultaneously (via sftp):

(gdb) where
#0 0x0000000000000000 in ?? ()
#1 0x0000003992a1e883 in ?? () from /usr/lib64/
#2 0x0000003992a1c7b9 in ?? () from /usr/lib64/
#3 0x0000003992a0591a in ?? () from /usr/lib64/
#4 0x0000003992a16475 in libssh2_sftp_write () from /usr/lib64/
#5 0x000000306923b4e3 in Curl_sftp_send () from /usr/lib64/
#6 0x0000003069217a65 in Curl_write () from /usr/lib64/
#7 0x000000306922b1c7 in Curl_readwrite () from /usr/lib64/
#8 0x000000306922bca8 in Curl_perform () from /usr/lib64/
#9 0x00007fe54eefe825 in my::company::curl::Curl::performTransfer(bool,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >,
void*) () from /raid0/pdgs/shared/

I noticed that, when I use OpenSSL and cURL in a multithreaded
environment, I must define the callback void lock_function(..) and void
unlock_function(..) in order to avoid problems like this.
Is it correct?

How can I use these two callbacks?


ATTENZIONE: le informazioni contenute in questo messaggio sono da considerarsi confidenziali ed il loro utilizzo e' riservato unicamente al destinatario sopra indicato. Chi dovesse ricevere questo messaggio per errore e' tenuto ad informare il mittente ed a rimuoverlo definitivamente da ogni supporto elettronico o cartaceo.

WARNING: This message contains confidential and/or proprietary information which may be subject to privilege or immunity and which is intended for use of its addressee only. Should you receive this message in error, you are kindly requested to inform the sender and to definitively remove it from any paper or electronic format.
List admin:
Received on 2011-08-10