1834882 Members
1844 Online
110071 Solutions
New Discussion

Problem in sending traps

 
siaemic
Advisor

Problem in sending traps

We developed an application that sends SNMP traps towards another server. We use the SNMP libraries of OpenView. We are experiencing such kind of problem: after few minutes that our process is running it crashes causing a core. Trying to debug the core we found that it fails inside libovsnmp.3 library. Below we report the details of stacks calls before the core:
#0 0xc01850f4 in _calloc ()from /usr/lib/libc.2
#1 0xc01823bc in _memcpy () from /usr/lib/libc.2
#2 0xc0187f08 in mktime () from /usr/lib/libc.2
#3 0xc25de3e8 in _OVEventSendRawPacket () from /opt/OV/lib/libovsnmp.3
#4 0xc25ddfe0 in _OVEventRecvRawPacket () from /opt/OV/lib/libovsnmp.3
#5 0xc0187f08 in mktime () from /usr/lib/libc.2
#6 0xc25de3e8 in _OVEventSendRawPacket () from /opt/OV/lib/libovsnmp.3

Our source code where the process seems to fail is:
mySession = OVsnmpOpen(.....);
copyPdu = OVsnmpCopyPdu( pdu );
OVsnmpBlockingSend(mySession, copyPdu);
OVsnmpFreePdu( copyPdu );
OVsnmpClose( mySession );

We are not really able to understand in which of above OVsnmp functions it fails because the debug doesn't give us such information.
Have anyone ever experienced such kind of problem? Could it be a problem caused by massive SNMP OV resources usage due to high number of sent traps ?