public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/9753] New: __res_maybe_init() not reinitializing state properly
@ 2009-01-17  1:05 pasky at suse dot cz
  2009-01-17  1:07 ` [Bug libc/9753] " pasky at suse dot cz
  2009-02-07  4:29 ` drepper at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: pasky at suse dot cz @ 2009-01-17  1:05 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/9753] __res_maybe_init() not reinitializing state properly
  2009-01-17  1:05 [Bug libc/9753] New: __res_maybe_init() not reinitializing state properly pasky at suse dot cz
@ 2009-01-17  1:07 ` pasky at suse dot cz
  2009-02-07  4:29 ` drepper at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pasky at suse dot cz @ 2009-01-17  1:07 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From pasky at suse dot cz  2009-01-17 01:07 -------
Created an attachment (id=3667)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3667&action=view)
Proposed patch


-- 


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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/9753] __res_maybe_init() not reinitializing state properly
  2009-01-17  1:05 [Bug libc/9753] New: __res_maybe_init() not reinitializing state properly pasky at suse dot cz
  2009-01-17  1:07 ` [Bug libc/9753] " pasky at suse dot cz
@ 2009-02-07  4:29 ` drepper at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2009-02-07  4:29 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-02-07 04:29 -------
The patch is in cvs now.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-07  4:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-17  1:05 [Bug libc/9753] New: __res_maybe_init() not reinitializing state properly pasky at suse dot cz
2009-01-17  1:07 ` [Bug libc/9753] " pasky at suse dot cz
2009-02-07  4:29 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).