[Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
Peter Korsgaard
jacmet at uclibc.org
Tue Dec 6 19:00:19 UTC 2011
>>>>> "Gustavo" == Gustavo Zacarias <gustavo at zacarias.com.ar> writes:
Hi,
Gustavo> Simple testcase for my failure:
Gustavo> Run snmpd with a basic config and run a snmpwalk against localhost
Gustavo> "snmpwalk -v 1 -c something localhost".
Gustavo> The snmpd daemon will die before the walk is done.
Gustavo> Rebuilding net-snmp with the patch fixes it.
Gustavo> And a gdb backtrace points at closedir() exactly.
Gustavo> Powerpc e300c3 target with latest gcc/binutils and uclibc 0.9.32.
Sorry, I missed the fact that include/dirent.h annotates closedir() with
__attribute__((nonnull)), which probably makes GCC drop the redundant if
(!dir) check.
I don't see any specific requirement in susv3 that it should handle NULL
pointers, so the patch seems OK:
http://www.bcs.zp.ua/manuals/en/susv3/functions/closedir.html
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list