> > It would seem that code is already in there.
>
> Nope.
> I've just checked a clean 5.2.2 tarball, and it blindly prints the
> value of the context string, with no checks. I've also checked the
> CVS archive, and there's no mention of this check (or anything similar)
> there either.
>
> I don't know what's happened to your code, unless you've inadvertently
> applied the patch twice?
I may have and so I pulled a clean copy out of the tarball and did
a "make clean" and "make" in the agent subdirectory. I got a new snmpd
binary but oddly the binary size and checksums are the same, as are the
gdb results.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run -DALL -f -Le
Starting program: /usr/local/sbin/snmpd -DALL -f -Le
trace: netsnmp_ds_set_boolean(): default_store.c, 205:
netsnmp_ds_set_boolean: Setting APP:1 = 0/False
trace: netsnmp_ds_set_boolean(): default_store.c, 205:
netsnmp_ds_set_boolean: Setting LIB:11 = 1/True
trace: netsnmp_ds_set_boolean(): default_store.c, 205:
netsnmp_ds_set_boolean: Setting APP:1 = 0/False
trace: netsnmp_register_handler(): agent_handler.c, 212:
handler::register: Registering (::null) at .0
trace: netsnmp_inject_handler_before(): agent_handler.c, 337:
handler:inject: injecting bulk_to_next before null
trace: netsnmp_register_mib(): agent_registry.c, 587:
register_mib: registering "" at .0
Program received signal SIGSEGV, Segmentation fault.
0xfeeb3218 in strlen () from /usr/lib/libc.so.1
(gdb) bt
#0 0xfeeb3218 in strlen () from /usr/lib/libc.so.1
#1 0xfef06520 in _doprnt () from /usr/lib/libc.so.1
#2 0xfef08694 in vsnprintf () from /usr/lib/libc.so.1
#3 0xff151798 in snmp_vlog (priority=7,
format=0x7fffffff <Address 0x7fffffff out of bounds>, ap=0xff2567f0)
at snmp_logging.c:1132
(gdb)
--
- Kyle
---------------------------------------------
[EMAIL PROTECTED] http://www.panix.com/~kylet
---------------------------------------------
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users