Description of problem: A WINS name lookup fails if libnetsnmp.so is loaded - it causes an application exit with the error message "ERROR: memdup failed". Version-Release number of selected component (if applicable): samba-winbind-clients-4.0.8-1.fc19.i686 Any Net-SNMP version. How reproducible: 100% Steps to Reproduce: 1. Edit /etc/nsswitch.conf. Change the "hosts: files dns" line into "hosts: files wins dns" 2. Download the Net-SNMP source code, build it and run its regression tests: git clone git://git.code.sf.net/p/net-snmp/code net-snmp && cd net-snmp && ./configure --with-defaults && make && rm -rf /tmp/snmp-test-* && make test Actual results: We failed these 1 tests: com2sec directive ( /home/bart/software/net-snmp/testing/fulltests/default/T070com2sec_simple ) cat /tmp/snmp-test-T070com2sec_simple-*/snmpd.log.stdout ERROR: memdup failed Expected results: Library functions to report memory allocation failures to the caller instead of calling exit(1). All Net-SNMP regression tests pass. Note: the root cause of this is probably that the libnss_wins function load_interfaces() calls memdup() and that the loader redirects this call to the Net-SNMP definition of memdup() instead of the libnss_wins version of memdup().
Probably the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=913614.
Candidate fix: http://sourceforge.net/p/net-snmp/mailman/message/31405941/.
You're right, it's a duplicate. *** This bug has been marked as a duplicate of bug 913614 ***