SNMPD and Subagent crashed

"Pamidipati Suresh-G20238" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
All,
 
We are using Net-snmp-5.2.2 as Master and Subagent.
We observed that both snmpd and subagent are crashed in one scenario.
 
1. snmpd crashed in the function snmp_oid_compare(). One of the function
argument, OID2 was having the value 0x0, which resulted in crash.
2. Subagent crashed at the following line (line number 5356) in the file
snmp_api.c, function _sess_read(). 
 
 if (!fdset || !(FD_ISSET(transport->sock, fdset))) {

When we checked the value of transport->sock, it has value -1.
 
Subagent crash happened immediately after SNMPD crash. We have gone
through the code to find out the reason for Subagent crash and found
that transport->sock is set to -1 in netsnmp_tcp_close() function which
is called when the Subagent detects that TCP connection with SNMPD is
down. Even if SNMPD crashes/stops running for some reason, subagent
should not crash. We are not able to find the reason for this behavior.
 
Please let us know if any of you has observed similar behavior. Any
information on this will be really helpful.
 
Thanks,
Suresh.

-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.