Bug 134 - NSD does not answer with many servers (>10 or 12).
NSD does not answer with many servers (>10 or 12).
Status: RESOLVED FIXED
Product: NSD
Classification: Unclassified
Component: NSD Code
2.3.x
All All
: P2 normal
Assigned To: NSD team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-02 13:08 CEST by Wouter Wijngaards
Modified: 2006-06-02 15:49 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wouter Wijngaards 2006-06-02 13:08:35 CEST
Jad does not get answers on Solaris, with >12 servers.
Wouter can reproduce this on linux 2.6.16 with >9 servers.

It seems that all of the server_child() processes stay blocked in pselect(). None return from the pselect, even though with dig requests are sent.
Comment 1 Wouter Wijngaards 2006-06-02 15:49:17 CEST
Array out of bounds. Fix is to change,

 #ifdef INET6
               if (hints[i].ai_family == AF_UNSPEC) {
 # ifdef IPV6_V6ONLY
----
 #ifdef INET6
               if (hints[0].ai_family == AF_UNSPEC) {
 # ifdef IPV6_V6ONLY

in nsd.c. Fix is in subversion for 2.3.6 en for 3.0pre.