[AGENT++] Little change in example causes seg fault

Jochen Katz katz at agentpp.com
Sat Nov 6 13:35:54 CET 2004


Hi,

> With my little changes, this doesn't appear any more
> and an snmpwalk causes a segmentation fault.

if there is a crash during snmpwalk, it's possibly within your added 
object. What does the debugger say?

> If I take the static_table example and delete the line
> mib.add(new snmp_target_mib());
> the agent stops due to a segmentation fault on start.

if you remove the SnmpTargetMib you will have to remove the 
NotificationOriginator code, as this depends on the SnmpTargetMib
//	no.add_v1_trap_destination(dest);
//	no.generate(vbs, 0, coldOid, "", "");

Regards,
   Jochen



More information about the AGENTPP mailing list