DragonFly users List (threaded) for 2008-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: libthread_xu and getaddrinfo problem
Johannes Hofmann <Johannes.Hofmann@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!
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]