On Wed, 01 Sep 2004 12:46:29 +0200 Tommy wrote:
TC> John P. Looney wrote:
TC> > exec .1.3.6.1.4.1.2021.51 memfree  /usr/local/bin/memfree$
TC> > exec .1.3.6.1.4.1.2021.100 disk1 /usr/local/bin/diskused /$
TC> 
TC> The .100 OID is already used by "ucd-snmp/versioninfo", so you cannot
TC> just hi-jack that one - but how would anybody know that ?!
TC>  [...]
TC> Anyway, the above explains why your setup fails (duplicate registration),
TC> but this shouldn't crash the agent! The reason for that is a double-free
TC> of the handler registration object:
TC>   1) netsnmp_register_mib() => netsnmp_subtree_free()
TC>   2) netsnmp_register_old_api()
TC> 
TC> I guess the one in netsnmp_register_old_api() could just be removed, but
TC> I haven't checked all possible error paths in the code (!!).

That fixes one double free, but another was lurking behind it, along with some
potential memory leaks. All have been fixed, and official patch 2 for 5.1.2 is
available:

http://sourceforge.net/tracker/index.php?func=detail&aid=1020597&group_id=12694&atid=456380

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to