Hello Dave!
Do I have any way to disable notification log ?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vlad
Shafransky
Sent: Monday, November 13, 2006 10:18 AM
To: Dave Shield; [EMAIL PROTECTED]
Cc: [email protected]
Subject: SNMPD crash
Hello!
I use net-snmp-5.3.0.1-1.EL4 with dynamic module.
We performed some load test and after 10 hours snmpd had crashed.
Below you may see back trace from the core.
I would like to mention that load test sends exactly same trap (i.e. the
payload of snmp packet exactly same).
I saw that snmp_oid_compare doesn't comare whether it receives NULL
pointers or wrong sizes and I understand that snmpd crashed since wrong
input.
Do you have any ideas?
Thanks ahead, Vlad.
P.S
I found the problem for crash from my previous letter.
It happened also in load test in multithreading environment.
The problem was fixed by synchronization of trap sending.
snmp_oid_compare (in_name1=0x0, len1=9, in_name2=0x0, len2=9) at
snmp_api.c:6313
6313 if (*(name1) != *(name2)) {
(gdb) bt
#0 snmp_oid_compare (in_name1=0x0, len1=9, in_name2=0x0, len2=9) at
snmp_api.c:6313
#1 0x008ac085 in netsnmp_notif_log_remove_oldest (count=1) at
notification-log-mib/notification_log.c:68
#2 0x008ac645 in check_log_size (clientreg=0, clientarg=0x0) at
notification-log-mib/notification_log.c:121
#3 0x008adb7a in log_notification (pdu=0xadffa38, transport=0x0) at
notification-log-mib/notification_log.c:703
#4 0x008a9457 in send_notifications (major=1, minor=7,
serverarg=0xadffa38, clientarg=0x0)
at notification/snmpNotifyTable.c:260
#5 0x001c83b4 in snmp_call_callbacks (major=1, minor=7,
caller_arg=0xadffa38) at callback.c:323
#6 0x003565de in netsnmp_send_traps (trap=-1, specific=-1,
enterprise=0x3750a0, enterprise_length=10, vars=0xb8026b0,
context=0x0, flags=0) at agent_trap.c:790
#7 0x003567b3 in send_enterprise_trap_vars (trap=-1, specific=-1,
enterprise=0x3750a0, enterprise_length=10,
vars=0xb8026b0) at agent_trap.c:804
#8 0x003567ea in send_trap_vars (trap=8, specific=0, vars=0x9) at
agent_trap.c:902
#9 0x00356857 in send_v2trap (vars=0xb8026b0) at agent_trap.c:961
#10 0x004d3817 in snmp_server::process_send_trap (this=0x5806c0,
[EMAIL PROTECTED])
at /home/keren/snmp/src/snmp_os/snmp_server.cpp:385
#11 0x004cf74a in snmp_server::receive_message (this=0x5806c0,
[EMAIL PROTECTED])
at /home/keren/snmp/src/snmp_os/snmp_server.cpp:132
#12 0x004d0d0e in c_pipe_server::read_and_echo (this=0x5820dc,
insock=14, index=1) at os_pipe.h:1006
#13 0x004d0b57 in c_pipe_server::accept_and_read (this=0x5820dc,
l_nfds=1, m_ret_e_poll_fds=0x5821d8) at os_pipe.h:977
#14 0x004d07c1 in c_pipe_server::read_pack (this=0x5820dc) at
os_pipe.h:894
#15 0x004cf292 in snmp_server::process (this=0x5806c0) at
/home/keren/snmp/src/snmp_os/snmp_server.cpp:93
#16 0x004b0b84 in run_thread (objPtr=0x5806c0) at
/home/keren/snmp/src/snmp_os/os_snmp.cpp:124
#17 0x00b2a3ae in start_thread () from /lib/tls/libpthread.so.0
#18 0x0043caee in clone () from /lib/tls/libc.so.6
************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************
------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
************************************************************************************
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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