cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcurl multi handle and FTP download

From: Pramod Sharma <pramodsharma08_at_gmail.com>
Date: Mon, 23 Jun 2014 20:17:02 +0530

Hello,
I am getting crash while downloading via FTP and using curl(7.35.0) multi
handle. I am using libuv for event library and using the sample posted in "
http://curl.haxx.se/libcurl/c/multi-uv.html".

Any pointers will be appreciated.

-bash-4.1# gdb ./a.out
........Reading symbols from /tmp/curl/a.out...done.
(gdb) r ftp://10.213.254.78:21/Shree/test.xml
Starting program: /tmp/curl/a.out ftp://10.213.254.78:21/Shree/test.xml
........
Added download ftp://10.213.254.78:21/Shree/test.xml -> 1.download

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7ddc436 in Curl_hash_pick () from ./libcurl.so.4
(gdb) where
#0 0x00007ffff7ddc436 in Curl_hash_pick () from ./libcurl.so.4
#1 0x00007ffff7ddde20 in singlesocket () from ./libcurl.so.4
#2 0x00007ffff7ddf4e8 in multi_socket () from ./libcurl.so.4
#3 0x00007ffff7ddf55f in curl_multi_socket_action () from ./libcurl.so.4
#4 0x00000000004011c0 in curl_perform (req=0x622d00, status=0, events=1)
at curl.c:81
#5 0x00007ffff73e49c5 in uv__poll_io () from ./libuv.so.0
#6 0x00007ffff73f24b0 in uv__io_poll () from ./libuv.so.0
#7 0x00007ffff73de9a6 in uv_run () from ./libuv.so.0
#8 0x00000000004014eb in main (argc=0, argv=0x7fffffffe6a8) at curl.c:174
(gdb)

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-06-23