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

Jochen Katz katz at agentpp.com
Thu Dec 21 20:28:12 CET 2006


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



More information about the AGENTPP mailing list