[AGENT++] Snmp++ Memory leak /Crash using SNMP V3 ?

Anurag Jain anuragjain026 at hotmail.com
Thu Dec 21 22:45:36 CET 2006


Thanks!

Also Does calling add_usm_user with the exact same set of parameters many 
times from multiple threads cause any erroneous behaviour .

I understand that  it may not be the most efficient but is it supported ?

Regards,
Anurag


>From: Jochen Katz <katz at agentpp.com>
>To: agentpp at agentpp.org
>Subject: Re: [AGENT++] Snmp++ Memory leak /Crash using SNMP V3 ?
>Date: Thu, 21 Dec 2006 20:28:12 +0100
>
>Hi,
>
> > We are using version 3.2.18 of snmp++ library and we crashes in the code
>
> > #5  0x0815933d in USMUserTable::add_entry (this=0x933bf20,
> > #6  0x081509d0 in USM::add_localized_user (this=0x933b8d0,
> > #7  0x0815137e in USM::get_user (this=0x933b8d0, engine_id=@0x933b8d0,
> > #8  0x08150a35 in USM::add_usm_user (this=0x933b8d0,
> > #9  0x08150a7f in USM::add_usm_user (this=0x933b8d0,
>
> > Has this been fixed in later versions of snmp++ ? Could this problem be
> > related to the fix in :
> >
> > - Fixed: Bug in SNMPv3 encryption code which will lead to a
> >  crash after a random number of encryptions (Stuart Marks).
>
>I think, it's the USM threading fix below, because the encryption bug
>just leads to a read of memory that does not belong to the process.
>
>- Fixed: USM was not thread safe (found from John McCaskey):
>   Changing users from two different threads or changing users
>   while messages of these users are processed could cause
>   segmentation faults.
>
>Regards,
>   Jochen
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/agentpp

_________________________________________________________________
Your Hotmail address already works to sign into Windows Live Messenger! Get 
it now 
http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview




More information about the AGENTPP mailing list