[Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS

Gustavo Zacarias gustavo at zacarias.com.ar
Tue Dec 6 18:18:02 UTC 2011


On 06.12.2011 15:09, Peter Korsgaard wrote:

> Thanks, but I don't think that's the culprint as closedir() in uClibc
> checks for NULL pointers (and have done so for 10 years).
>
> int closedir(DIR * dir)
> {
>         int fd;
>
>         if (!dir) {
>                 __set_errno(EBADF);
>                 return -1;
>         }
>
>         ..
> }

Simple testcase for my failure:
Run snmpd with a basic config and run a snmpwalk against localhost 
"snmpwalk -v 1 -c something localhost".
The snmpd daemon will die before the walk is done.
Rebuilding net-snmp with the patch fixes it.
And a gdb backtrace points at closedir() exactly.
Powerpc e300c3 target with latest gcc/binutils and uclibc 0.9.32.
Regards.



More information about the buildroot mailing list