[AGENT++] Intermittent core dumps in MibLeaf::get_oid
Jochen Katz
katz at agentpp.com
Sun Aug 27 23:43:42 CEST 2006
Hi,
without more details (sample code) only some hints:
- If you can disable threads, recompile everything without threads and
see what happens. If it then crashes always or never it's a thread problem.
- Look at the call stack with a debugger and check if all objects are valid.
Regards,
Jochen
> I have this intermittent problem that is driving me crazy trying to
> replicate and fix, so I thought I'd try the mailing list to see if it
> may be an AgentPP bug or something. I have code in the SNMP agent that
> sets up to send a trap, initializing a NotificationType object to one of
> my defined traps in the MIB, and an EventObject object to the instance
> field of a node in the MIB that contains text that I want to send. Later
> on, it tries to set the variable bind OID to the OID of the event
> object, and 3 or 4 times out of 10, this crashes the agent with a seg
> fault on the call to get the OID of the event object. It's not tied to
> my particular trap as it seems to happen with a different trap every
> time(there's code in that function to handle different types of traps).
More information about the AGENTPP
mailing list