This is the mail archive of the glibc-bugs@sourceware.org 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]
Other format: [Raw text]

[Bug nis/3098] New: dormant nisplus breaks getaddrinfo (possibly ipv6 related)


Today, I upgraded wget from 1.10 to 1.10.2.  The new version failed to resolve 
any host names, always returning the error "file not found."  I tracked the 
problem down to the libc call getaddrinfo.  After some experimentation, I 
found that I could make the symptom disappear (i.e., wget would work again) if 
I changed a line in my /etc/nsswitch.conf from

hosts:      files nisplus nis dns

to

hosts:      files nis dns

.

Running strace on the failing wget process produces a log that suggests that 
the "file not found" error (errno=ENOENT) is not the direct result of a system 
call actually returning that error, as the last system call that returned the 
error was open("/etc/nscd.conf",....), which happened before the call to any 
nisplus-specific methods.

This PC is not actually configured to use NIS or NIS+, so I arguably should 
not be slowing it down the extra drivers in my /etc/nsswitch.conf, but, even 
so, nisplus should not prevent getaddrinfo() from calling through to the next 
drivers (nis and dns, in this case).

Note that my Linux kernel is compiled with CONFIG_IPV6=m, but the ipv6 modules 
is NOT loaded during this time, including during the build of wget, although 
wget does configure its build to support IPV6.  hTis is potentially important 
to anyone else who reports a similar problem with wget as the relevant code in 
wget has different versions that it compiles in depending upon when ipv6 was 
detected.  My build of wget had ipv6 enabled.

For the time being, I can easily live with nisplus commented out, although I 
expect I will dig into it when I have a little more time.  I suspect the bug 
is in some error branch of internal_nisplus_gethostent_r() in 
glibc-2.4/nis/nss_nisplus/nisplus-hosts.c.

It is also possible that this these symptoms are some kind of system 
administration error on my part in my nisplus (non-)configuration, but I am 
filing the bug report at this point in case anyone else hits the same problem, 
as I wasn't able to find a similar bug report querying the database or 
searching the web.

-- 
           Summary: dormant nisplus breaks getaddrinfo (possibly ipv6
                    related)
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P3
         Component: nis
        AssignedTo: kukuk at suse dot de
        ReportedBy: adam at yggdrasil dot com
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=3098

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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