RE: SNMPD 5.1.1 crash
"Doru Botez" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
After further investigation I know that the problem is related to the initial handler for the table in the private MIB. I forced the handler to return a set of known values and I was able to walk through the table. The problem is that in real life the agent is not crashing all the time, it depends on the situation described by the table i.e. a map of network devices whose number can vary a lot. The handler for the table uses recursion; it uses 9 bytes plus size of the registers saved by the compiler for each call. What are the limitations for the stack available for the handler? To answer the questions you asked: - the table seemed that it started to fail after adding new nodes but now I know that it was failing before. - if I walk through a single column the agent crashes as well. - the initialization routine is certainly called so the new mib is initialized but the crash still occurs. Thanks a lot, Doru -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: July 31, 2006 1:52 AM To: Doru Botez Cc: [email protected] Subject: Re: SNMPD 5.1.1 crash On 28/07/06, Doru Botez <[email protected]> wrote: > after expanding a private MIB the snmpd crashes when > trying to do a walk on a table that before expanding the MIB worked fine. > ..... The agent uses the old api and before the crash I > can see a trace message about an "evil_client" after returning from the > handler defined for the table that I'm trying to walk through. Just to be clear - is this handler related to the new (private) MIB, or the table that has suddenly started failing? Which order do these two MIBs occur? What happens if you try to walk a single column (not the last) of the table - does that trigger the crash? Or is it just falling off the end of the table? What happens if you run the agent using '-I-new_mib' (if the new initialisation routine is called 'init_new_mib' - adjust accordingly)? Does the agent still crash or not? 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