[AGENT++] Bug in NotificationOriginator->add_v3_trap_destination()?

Jochen Katz katz at agentpp.com
Sat Feb 4 00:09:35 CET 2006


Hi Josh,

> I now have the agent itself working perfectly... but if I attempt to
> shutdown the agent, I receive an access violation during the "delete
> mib" call.  I tracked down the error to the clearing of contexts.  If I
> try to call mib->remove_context() first, I crash there.  The crash
> *seems* to be occuring during the destructor of an OctetStr within the
> default context, but that could be a bad trace...

just go up in the stack frames to see which other mib classes are
involved. Then you have the Mibgroup/MibTable/MibLeaf class that causes
the crash.

> Is there anything special I need to do to cleanup the generated system
> and variables before deleting them?

The only thing you should do before deleting the mib is to make sure
that there are no active threads that process requests:

while (!mib->get_thread_pool()->is_idle())
  sleep(...)

Regards,
  Jochen



More information about the AGENTPP mailing list