libthread_xu and getaddrinfo problem
Johannes Hofmann
Johannes.Hofmann at gmx.de
Tue Apr 22 11:19:49 PDT 2008
Johannes Hofmann <Johannes.Hofmann at gmx.de> wrote:
> After reading the thread on kernel I switched from libc_r to libthread_xu.
> Now I have sporadic problems with a program that creates a thread to call
> getaddrinfo(3). From time to time I get EAI_NODATA even though the address
> is resolvable. It seems to be some timing issue as additional printfs make
> the problem go away.
> Below is a ktrace output that shows a problematic getaddrinfo() call. I
> wonder if
> 40645:27 dillo-fltk RET kevent -1 errno 9 Bad file descriptor
> is ok?
Never mind. The main thread seems to close fd 4 twice which interfers
with getaddrinfo () in the other thread.
Cheers,
Johannes
PS: ktrace is really great for debugging such stuff!
More information about the Users
mailing list