Josef Ridky,
Thanks for the quick response.
The following is the simple command which I looped to run continually.
snmptrap -v 1 -c public DEST_IP SNMPv2-MIB::snmpTrapOID SRC_IP 5 1 ''
SNMPv2-MIB::sysName.0 s "Name"
I don't have a fix for it. I think, freeing it in the end of log_notification
will solve the problem.
Let me check for regression and confirm.
Thanks,
Jeffry Copps, IN
jeffry
On Tue, Jul 11, 2017 at 1:31 PM, Josef Ridky <jri...@redhat.com> wrote:
> Hi Jeffry,
>
> no one can tell you that snmptrapd is without any memory leaks. I am sure,
> they are here, but it will be great to fix them.
> May I ask you for snmptrap command, which you used for this analysis? Or
> do you already have a patch for it?
>
> Regards
>
> Josef Ridky
> Associate Software Engineer
> Core Services Team
> Red Hat Czech, s.r.o.
>
> ----- Original Message -----
> | From: "Jeffry Copps" <jeffrycopps1...@gmail.com>
> | To: net-snmp-coders@lists.sourceforge.net
> | Sent: Tuesday, July 11, 2017 9:12:13 AM
> | Subject: Snmptrapd memory leak at log_notification
> |
> | Hi NET-SNMP,
> |
> | I have recently starting working on SNMP Trapd daemon.
> | And I was running a memory leak analysis on the application and came to
> know
> | that there is a leak
> | in the below call stack.
> | Could someone help me here? Or have I understood it wrong?
> |
> | LeakTrack+20b07
> | msvcr120!malloc+5b
> | memdup+53
> | netsnmp_set_row_column+138
> | log_notification+68b
> | notification_handler+8a
> | snmp_input+45a
> | snmp_vlog+1f2a
> | sess_read+b99
> | snmp_read+5f
> | SnmpTrapdMain+c17
> |
> |
> | Thanks in advance,
> | Jeffry Copps, IN
> |
> | ------------------------------------------------------------
> ------------------
> | Check out the vibrant tech community on one of the world's most
> | engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> | _______________________________________________
> | Net-snmp-coders mailing list
> | Net-snmp-coders@lists.sourceforge.net
> | https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
> |
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders