This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
More on nscd problem
- To: libc-alpha@cygnus.com
- Subject: More on nscd problem
- From: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
- Date: Wed, 3 Feb 1999 00:21:07 +0100
Last year, I reported a problem with nscd and got a friendly response
that I should go to hell or debug the problem. So I debugged the
problem.
I'm trying to resolve the name 'ftp', when my /etc/resolv.conf reads
search informatik.hu-berlin.de
nameserver 141.20.20.52
Without nscd, it resolves. With nscd, I get an error. I tracked this
down nscd calling __gethostbyname2_r, which returns with a NULL result
pointer, even though the lookup was successful.
Inside __gethostbyname2_r, it calls all the lookup functions. When it
comes to DNS, the call
status = _CALL_DL_FCT (fct, (ADD_VARIABLES, resbuf, buffer, buflen,
&errno H_ERRNO_VAR));
will return NSS_STATUS_TRYAGAIN. errno at that time is 90, which
translates to EMSGSIZE on my system. gethostbyname will consider the
operation failed, and set *result to NULL.
If you need further information, please let me know.
Regards,
Martin