cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem in download 8 gigabyte files using sftp

From: <michele.mazzei_at_acsys.it>
Date: Thu, 12 Jan 2012 15:00:24 +0100

...Moreover, I tried to compile and launch the sftp.c example file of
the libssh2 library (it simply makes a read (get) from a remote host)
and it works: it reads bytes without coredump.

Please, any idea?

Bye
Michele

NB
The file sftp.c is included in the libssh2--1.2.7.tar.gz distribution,
under "example" folder.

On 01/12/2012 12:38 PM, michele.mazzei_at_acsys.it wrote:
> Hello to all.
> I have this problem:
> I must move very large files across the intranet; I'm trying to put
> and get a file of 8 gigabytes using sftp.
> For put: there is no problems!
> For get: I got the following coredump:
>
> (gdb) where
> #0 libssh2_session_block_directions (session=0x0) at session.c:1642
> #1 0x000000366e63dc74 in ssh_block2waitfor (conn=0xee9810,
> block=<value optimized out>) at ssh.c:2310
> #2 0x000000366e6417e8 in Curl_sftp_recv (conn=0xee9810,
> sockindex=<value optimized out>, mem=<value optimized out>, len=<value
> optimized out>) at ssh.c:2801
> #3 0x000000366e617a12 in Curl_read (conn=0xee9810, sockfd=4,
> buf=0xee0e48 "", sizerequested=<value optimized out>,
> n=0x7ffff777ac40) at sendf.c:554
> #4 0x000000366e62e012 in readwrite_data (conn=0xee9810,
> done=0x7ffff777acde) at transfer.c:446
> #5 Curl_readwrite (conn=0xee9810, done=0x7ffff777acde) at
> transfer.c:1684
> #6 0x000000366e62fdb8 in Transfer (data=0xee0690) at transfer.c:1960
> #7 Curl_perform (data=0xee0690) at transfer.c:2639
> #8 0x0000000000400e08 in main () at ftpget.c:75
> (gdb)
>
> My source is ftpget.c, one of the examples available:
>
> ...
> curl_easy_setopt(curl, CURLOPT_URL,
>
> "sftp://sentinel-sl6//data//testDSDdata//inBasketDC-Implicit//StressTest-6.tar");
>
> curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, 8589918208L);
>
> curl_easy_setopt(curl, CURLOPT_USERPWD, "micmaz:12qwas");
> curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
> curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
>
> curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
> res = curl_easy_perform(curl);
> ...
>
> Configuration:
>
> OS: CentOS kernel: 2.6.32-131.12.1.el6.x86_64
> cURL:libcurl/7.19.7 zlib/1.2.3 libidn/1.18 libssh2/1.2.7
> libgcrypt-1.4.5-3
>
> Best Regards.
> Michele
>
>
> ----------------------------------------------------------------------
> 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: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

----------------------------------------------------------------------
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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2012-01-12