Re: snmp agent crashed when i used the tool snmpwalk running through out my private MIB(a table).
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 22/12/06, jiang jilin <[email protected]> wrote: > Program received signal SIGSEGV, Segmentation fault. > 0xb7e95b20 in rsfwTable_handler (handler=0x80a1e60, > reginfo=0x80a1ea0, reqinfo=0x0, requests=0x810ebe0) at rfw/rs.c:361 > 361 > snmp_set_var_typed_integer(request->requestvb, ASN_COUNTER, Hmmm... I'm not sure I believe the problem lies with 'reqinfo'. If this was indeed NULL, then the module would have crashed earlier, back at the statement: switch (reqinfo->mode) I'm suspicious of the table_entry variable - which you extract from the request structure, but never actually check before using. Try putting a breakpoint on line 361, run the agent again, and check the values of 'reqinfo', 'request' and 'table_entry' - *before* executing the snmp_set_var_typed_integer call. > snmp_set_var_typed_value(request->requestvb, > SNMP_NOSUCHOBJECT, NULL, 0); That's not right. Try netsnmp_set_request_error(reqinfo, request, SNMP_NOSUCHOBJECT); instead Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users