Hi Robert, On Sunday, January 25, 2015 9:03 PM, NetSNMP Mailbox wrote: > On Wed, 7 Jan 2015 00:40:57 +0000 David wrote: DH> I ran into an > insidious agent (snmpd) hang on Linux that had me DH> stumped for quite > a while. The hang occurred when attempting to DH> walk DH> mib-2 and > always occurred during attempts to walk DH> TCP-MIB::tcpConnTable. At > first I thought this might be related to DH> my build of v5.7.3 'snmpd' > (see below), but I eventually DH> discovered that this was related to > the fact that the system the DH> agent was running on did not have > netlink socket diagnostics DH> configured in the kernel. When this is > the case the netlink DH> (TCPDIAG_GETSOCK) response returns an error; > the v5.7.3 version of DH> agent/mibgroup/mibII/tcpTable.c does not > handle this case and the DH> specific code ends up in an infinite wait. > DH> DH> I've enclosed a patch that illustrates one way of fixing this. > DH> This simply logs an error and then returns from the loop when this > DH> case is encountered. The additional check for a non-zero error DH> > code isn't exactly needed in this case since the original netlink DH> > message isn't requesting an ACK (netlink ACKs are returned as DH> > NLMSG_ERROR message DH> types, but with a zero error code). However, > I've left in this DH> check for completeness. I've also removed a > redundant assignment to the 'r' pointer. > > David, > > Thank you for investigating this issue and sending us a patch. I've > applied to to all active branches which have this code.
Excellent, thx. > DH> * I mentioned that I thought this was originally an issue related > DH> to the build. I still think there are issues with the new 'libnl3' > DH> support that was added in v5.7.3. I'm not an 'autoconf' expert so > DH> I won't go into details about it, but I can describe at a high > DH> level what I think is wrong. > > Can you please file a bug with this info for the autoconf issue? Will do. Does anyone have an idea when the first v5.7.3 patch (v5.7.3.1) might appear? Thanks, -David > Thanks, > Robert ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders