Re: Memory leak in 5.5

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Mon, Sep 27, 2010 at 5:45 PM, kavita raghunathan
<[email protected]>wrote:

>  Valgrind found no leaks. I left it over night. But top still reports that
> snmpd is leaking memory. I did do what he suggested. What I'm trying to say
> is, is there any known memory leaks with net-snmp 5.5 ? Has anyone else
> reported a problem ? Google does not show anyone reporting a problem, but
> maybe you all know of one. Should I be trying dmalloc ?
>

Hello Kavita,

Are you aware that Valgrind only prints a leak report when snmpd stops, not
while it is running ? After snmpd has been running for a whole night under
Valgrind, you should stop snmpd and capture the Valgrind output in a file.
Analysis of that output will tell whether or not there is a leak.

Note: Valgrind will report many "leaks" on snmpd. Not everything that
Valgrind reports is a bug though - Valgrind also complains when memory is
allocated at startup but not freed at exit. That is not the same as a memory
leak. Careful analysis of the Valgrind output is necessary before a
conclusion can be drawn.

Regarding known bugs in 5.5: please have a look at the Net-SNMP 5.6.pre3
ChangeLog. All bugs that have been fixed since version 3-0A1 are documented
in that file.

Bart.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.