curl-library
Re: libcurl multi handle and FTP download
Date: Tue, 24 Jun 2014 02:18:09 -0400
On 6/23/2014 10:47 AM, Pramod Sharma wrote:
> 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".
Did you use the sample as is? I had to modify it to get it working on
Windows.
void on_timeout(uv_timer_t *req, int status)
to
void on_timeout(uv_timer_t *req)
void start_timeout(CURLM *multi, long timeout_ms, void *userp)
to
int start_timeout(CURLM *multi, long timeout_ms, void *userp)
and return 0
> 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
I can't reproduce here in Windows. I'm using multi-uv with modifications
above; libcurl from its git repo, e934439 2014-06-08; libuv from its git
repo, eee4776 2014-05-12; all built using Visual Studio 2010 SP1 (Debug
x86).
If you have some more information about how you built it and libcurl and
libuv someone may try to reproduce in Linux for you. Also it would be
helpful to reference an ftp file that's publicly accessible, if it's
possible for you to reproduce that way. http://curl.haxx.se/docs/bugs.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-06-24