cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: BUG? - Interruption by firewall causes GPF using WIN32 Libcurl

From: Gisle Vanem <giva_at_bgnett.no>
Date: Sun, 03 Apr 2005 16:22:24 +0200

"James C" wrote:

> Invalid function pointer - Backtrace:
>
> ===
> WS2_32.DLL> several
> ===
> LIBCURL.DLL> _Curl_getaddrinfo (hostthre.c) 1000d6ae
> (offset 8BE)
> ; 205 : he = gethostbyname (conn->async.hostname);
> ===
> LIBCURL.DLL> __beginthreadex 1002d943

So what pointer is invalid here?

> 7. At this point, click Allow on the ZoneAlarm
> security dialog.

How does ZoneAlarm influence with libcurl? Can you provide a
small program that demonstrates the problem?

The changes to hostthre.c done by Traian Nicolescu should have
made sure the gethostbyname_thread and getaddrinfo_thread ends
gracefully by this code;

  /* is the thread initiator still waiting for us ? */
  if (WaitForSingleObject(mutex_waiting, 0) == WAIT_TIMEOUT) {
    /* yes, it is */

Looks like some race condition... Then again I don't see how calling
Curl_close() will end up calling destroy_thread_data(). Will it?

PS. I don't have ZA myself, so I cannot help much with that.

--gv
Received on 2005-04-03