This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

More on nscd problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]