Ok folks, I finally tracked down all the AgentX memory leak bug reports, emails
and patches, and combined all that with my own notes. The end result is a
slightly modified version of a patch from Franz Fischer. This like is to a
patch against 5.1.2:

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

However, the code hasn't changes all that much and applies to the 5-0-patches
branch easily (earlier 5.0.x releases might need additional changes as well).

I'd like to thank everyone who contributed information and helped with
debugging. If everyone could verify that this patch works for them, we can
consider this one closed.



On Thu, 11 Mar 2004 13:52:26 -0500 Konrad wrote:
KR> I've a steady memory leak using sorted-array container in 5.0.9, 5.1, 
KR> 5.1.1-pre2, 5.1.1-V5-1-patches and the latest from CVS.

On Fri, 19 Mar 2004 15:21:17 +0100 Penz, wrote:
PB> When doing SET calls to an AgentX subagent, memory is leaking. I use
PB> version 5.1.1.rc1.

On Fri, 30 Apr 2004 10:47:55 +0200 Wolfgang wrote:
WF> I found that for each variable in a SET, 3 "clones" of this variable are
WF>  not freed.
WF> 
WF> Further debugging showed actually two different memory leaks during
WF> SETs, the one already discussed and another one that only seems to exist
WF> in an agentx subagent.

On Tue, 17 Aug 2004 11:24:25 -0700 Fong wrote:
FT> I have applied the part of patch #702435 (only changes in snmp_agent.c) for
FT> memory leak in SET data in subagent. [...]  It seems working. There is no
FT> leak. I don't know whether it will crash or not yet. I will test more.

On Tue, 04 May 2004 18:05:53 +0200 Tommy wrote:
TC> No, the Master Agent (i.e. snmpd) doesn't leak memory (that I know of).
TC> An agentX sub-agent does leak memory. The leak is not in your code, but
TC> in the implementation of the agentX protocol - located in the libraries
TC> that your application links with.
TC>  [...]
TC> If you decide that it *is* a problem, you can fix it by applying
TC> this patch. It is against a plain 5.0.8.

On Fri, 23 Jul 2004 16:27:01 +0900 Won-Sik wrote:
WSK> I use net-snmp-5.1.1 on Linux with agentX for developing multi device
WSK> system.
WSK> 
WSK> I suffered from following three problems.
WSK> 
WSK> 1. memory leak in master agent if manager sends many getbulk requests at
WSK> once.

I'm hoping this problem is solved by the patch as well, but I'm not sure.


-- 
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. 


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to