[Bug libc/9753] New: __res_maybe_init() not reinitializing state properly
pasky at suse dot cz
sourceware-bugzilla@sourceware.org
Sat Jan 17 01:05:00 GMT 2009
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.
More information about the Glibc-bugs
mailing list