[AGENT++] Snmp++ Memory leak /Crash using SNMP V3 ?
Anurag Jain
anuragjain026 at hotmail.com
Thu Dec 21 19:36:03 CET 2006
All,
We are using version 3.2.18 of snmp++ library and we crashes in the code
(speciafically v3 ) as per th stack trace below , we are using v3
credentials on upto a 1000 devices together - high load with the same snmp
v3 credential (auth-priv)?
#0 0x00baacee in _int_malloc () from /lib/tls/libc.so.6
#1 0x00baa0fd in malloc () from /lib/tls/libc.so.6
#2 0x004ec86e in operator new () from /usr/lib/libstdc++.so.5
#3 0x004ec9bf in operator new[] () from /usr/lib/libstdc++.so.5
#4 0x08161c09 in v3strcpy (src=0xbb064c0 "O¼Õ}tQ¸\204h\001YYèmÌ¥",
srclen=16) at v3.cpp:156
#5 0x0815933d in USMUserTable::add_entry (this=0x933bf20,
engine_id=@0x933b8d0, user_name=@0xb4cd338, sec_name=@0xb4cd364,
auth_proto=2,
auth_key=@0xab1b2550, priv_proto=2, priv_key=@0xab1b2520) at
usm_v3.cpp:3519
#6 0x081509d0 in USM::add_localized_user (this=0x933b8d0,
engine_id=@0x933b8d0, user_name=@0xb4cd338, security_name=@0xb4cd364,
auth_protocol=2,
auth_key=@0xab1b2550, priv_protocol=2, priv_key=@0xab1b2520) at
usm_v3.cpp:938
#7 0x0815137e in USM::get_user (this=0x933b8d0, engine_id=@0x933b8d0,
security_name=@0xab1b2680) at usm_v3.cpp:1156
#8 0x08150a35 in USM::add_usm_user (this=0x933b8d0, user_name=@0xab1b2680,
security_name=@0xab1b2680, auth_protocol=2, priv_protocol=2,
auth_password=@0xab1b26b0, priv_password=@0xab1b26e0) at usm_v3.cpp:961
#9 0x08150a7f in USM::add_usm_user (this=0x933b8d0,
security_name=@0xab1b2680, auth_protocol=2, priv_protocol=2,
auth_password=@0xab1b26b0,
priv_password=@0xab1b26e0) at usm_v3.cpp:975
Has this been fixed in later versions of snmp++ ? Could this problem be
related to the fix in :
Changes snmp++v3.2.20a
------------------
- Fixed: Bug in SNMPv3 encryption code which will lead to a
crash after a random number of encryptions (Stuart Marks).
Please advice.
Thanks
Anurag
_________________________________________________________________
Experience the magic of the holidays. Talk to Santa on Messenger.
http://clk.atdmt.com/MSN/go/msnnkwme0080000001msn/direct/01/?href=http://imagine-windowslive.com/minisites/santabot/default.aspx?locale=en-us
More information about the AGENTPP
mailing list