[AGENT++] memory leak

Meena Nallasivan meena.nallasivan at masconit.com
Fri Sep 10 11:56:24 CEST 2004


Hi,

We ran the SnmpWalk for overnight as a part of our performance test

After 12 hours the system crashed, from the traces attached below it
looks like there is a memory leak.


Can you clarify the following points

1. Are we using the memory from the system directly for "new" operator,
or if there is any Memory pool maintained?

2. in mib.cpp file, please find the code snippet below

#ifdef AGENTPP_USE_THREAD_POOL
        MibTask* mt = new MibTask(call);
        threadPool->execute(mt);

I don't see "mt" getting released anywhere? Am I missing something?

Regards,
Meena

#3  0x401c0ba4 in std::terminate() () from /usr/lib/libstdc++.so.5
#4  0x401c0d16 in __cxa_throw () from /usr/lib/libstdc++.so.5
#5  0x401c0f02 in operator new(unsigned) () from /usr/lib/libstdc++.so.5
#6  0x401c0fef in operator new[](unsigned) () from
/usr/lib/libstdc++.so.5
#7  0x0854176d in Oid::operator=(Oid const&) (this=0x411fc898,
oid=@0x411fc7a8) at oid.cpp:202
#8  0x08330ec0 in Agentpp::Oidx::operator=(Agentpp::Oidx const&)
(this=0x411fc898, _ctor_arg=@0x411fc7a8) at mib.h:1028
#9  0x082727db in Agentpp::Vbx::get_oid(Agentpp::Oidx&) const
(this=0x411fc7f8, oid=@0x411fc898) at snmp_pp_ext.cpp:195
#10 0x0826eb15 in Agentpp::Request::get_oid(int) (this=0x1c1c7a18, i=0)
at request.cpp:512
#11 0x0825cc06 in Agentpp::MibTable::get_next_request(Agentpp::Request*,
int) (this=0xc37bc30, req=0x1c1c7a18, ind=0)
    at mib.cpp:2025




More information about the AGENTPP mailing list