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 libc/9753] New: __res_maybe_init() not reinitializing state properly


With the latest CVS changes in libresolv (also included in FC10),
res_state.nscount is not always initialized to 1 anymore. However,
__res_maybe_init() code will reinitialize the state only if nscount is > 0 for
unknown reasons - I think it is just an oversight in the original code. Attached
patch proposes to fix it.

This exhibits in random resolution failures if nscd is started before
/etc/resolv.conf has been set up - I did not go through the code in detail but I
assume the existing threads will never get the new res state because nscount ==
0 in their original state.

-- 
           Summary: __res_maybe_init() not reinitializing state properly
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: pasky at suse dot cz
                CC: glibc-bugs at sources dot redhat dot com


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

------- 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]