curl / Mailing Lists / curl-library / Single Mail

curl-library

crash in curl_multi_perform

From: Yusuf Ekici via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 5 Oct 2017 13:54:16 +0300

I am using the 7.49.1 curllib as static.
When crash occurs the core debug trace shows add_next_timeout as the
point where crash occurs.

I changed that part in curl_multi_perform (multi.c) as:

do {
    multi->timetree = Curl_splaygetbest(now, multi->timetree, &t);
    if(t)
    {
      /* the removed may have another timeout in queue */
      if(t->payload)
      {
        (void)add_next_timeout(now, multi, t->payload);
      }
      else
      {
        printf("\n t->payload NULL \n ");
      }
    }

  } while(t);

As a result that code covers the crash 4 times as I see the “n t->payload
NULL” print in 20 times test. I found another issue related to this issue
https://curl.haxx.se/mail/lib-2016-01/0102.html.
Is it a known issue or do you have any idea why that occurs?

Best Regards
Yusuf

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