cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Bug in libcurl in multithreaded program

From: Jacky Lam <sylam_at_emsoftltd.com>
Date: Thu, 23 May 2002 22:57:31 +0800

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "libcurl Mailing list" <curl-library_at_lists.sourceforge.net>
Cc: "Avery Fay" <avery_fay_at_symantec.com>
Sent: Thursday, May 23, 2002 2:51 PM
Subject: Re: Bug in libcurl in multithreaded program

> On Thu, 23 May 2002, Jacky Lam wrote:
>
> > Can you try this patch to see any help?
>
> Thanks for this!
>
> I'm not so sure that this patch helps us much, because:
>

    Yes, I think the patch is not good and that's why I haven't submited it.
However, that patch fixes exact the same crash in my case. :p

Jacky

> o It uses pthreads mutex calls, which makes the use limited for portable
> applications. The stuff it protects should also not need protection and
> thus the need itself actually identifies a problem. Removing the
sympthoms
> of the problem may not be the right thing to do.
>
> o Some calls seem to assume a IPv4 address in the Curl_addrinfo struct,
which
> is badness because that will not always be the case.
>
> o It is a bit too all-covering. If this patch removes the problem Avery is
> having, I wouldn't have many clues on what the problem is or what the
fix
> would be in the main sources... Of course, if it would help, we know
that
> it at least includes a fix for the problem and then we could focus on
> getting that fix identified.
>
> This is just my opinion. Others may feel differently.
>
> --
> Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Received on 2002-05-23