curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Crash in curl_multi_perform add_next_timeout

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 19 Oct 2017 08:37:37 +0200 (CEST)

On Wed, 18 Oct 2017, Gangadhar Hariharan via curl-library wrote:

> Firstly congrats on the prestigious award! Kudos!:-)

Thanks a lot!

> The version of the libcurl: curl-7.47.1 Can you confirm that this crash
> could only occur if two threads are trying to read/write at the
> multi-handler at the same time?

I cannot with 100% certainty say that there are no bugs in there when used
single-threaded, but I'm not aware of any. And that's fundamental code that
has remained unchagned for a while and that's used by everyone, every day so I
have high confidence in it. (We've also fixed more than 900 bugs since that
release...)

That's why I suspect that it is related to threads. But to libcurl there
shouldn't be any difference if one call comes from thread 1 and the next from
thread 2 as long as the handles are not used simultaneously. To libcurl,
they're just calls.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-19