ASNMP (ACE-SNMP) crashes sometimes in multi threaded mode
We are using ACE SNMP library libasnmp.so version 5.2 to perform SNMP operation from a C++ code. Sometime our module crashes when freeing up ASNMP objects. It crashes sometimes and not always. We are using the ASNMP in multithreaded environment, where we have 50 threads, each thread instantiate ASNMP objects to perform SNMP operation on different devices in parallel. Not sure is there any issue with our code or with ACE SNMP library. Is anyone seen such issues with ACE ASNMP?
This is the stack trace when it crashes.
#0 0x54858950 in ?? ()
#1 0xb629ec49 in Vb::~Vb () from /usr/local/mysftw/libasnmp.so.5.4.0
#2 0xb629a065 in Pdu::~Pdu () from /usr/local/mysftw/libasnmp.so.5.4.0
#3 0xb62f5104 in ~ACESnmpMgr (this=0xad7fb20) at ACESnmpMgr.cpp:36
#4 0xb62f437a in ACEMgrClose (session=0xa5bb030) at ACESnmp.cpp:81
#5 0xb62f3c1f in MyMgrClose (session=0xad7fb20) at MySnmp.cpp:32
#6 0xb621c09d in MySnmp::CloseSession (this=0xb04ffdd4) at MyACESnmp.cpp:36
Thanks in advance.
|