cURL / Mailing Lists / curl-library / Single Mail


Re: Crash in gethostbyname_r?

From: Daniel Stenberg <>
Date: Sun, 15 Feb 2004 23:44:59 +0100 (CET)

On Mon, 16 Feb 2004, Nathan O'Sullivan wrote:

> I've been developing a small application using curl, that uses multiple
> threads. I am finding that the application will often crash when multiple
> threads are in gethostbyname_r at the same time. I was eventually able to
> resolve this by linking in the c-ares library. I'm using Slackware 9.1
> (which is gcc 3.2.3, glibc 2.3.2 I believe) on a dual Pentium3.
> Is this a known problem? Anything I could do to help diagnose further?

If this is a recent libcurl, like 7.11.0 or so, then it is not a known
problem. If you have an earlier version then please try a newer lib.

If you use 7.11.0, then we're intersted in seeing a stack trace and getting to
know a bit more about when you get the crashes.

    Daniel Stenberg -- --
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-15