Under 5.1.2 in RHEL4 (latest as of today using up2date), snmptrapd 
segfaults after running for a short time (maybe around 10 minutes).  I 
removed the 5.1.2 RPMs and compiled 5.3.0.1 and I am still getting the 
same problem.  I have not tried 5.3.1.rc4 yet.

Here is the back trace after receiving a trap:

(gdb) bt
#0  0x0000003d4886fd00 in strlen () from /lib64/tls/libc.so.6
#1  0x0000003d488428cc in vfprintf () from /lib64/tls/libc.so.6
#2  0x0000003d48861d84 in vsnprintf () from /lib64/tls/libc.so.6
#3  0x0000002a95b30ab7 in snmp_vlog (priority=6, format=0x2a9555eecd 
"%s%s", ap=0x7fbfffe5f0) at snmp_logging.c:1188
#4  0x0000002a95b30b98 in snmp_log (priority=Variable "priority" is not 
available.
) at snmp_logging.c:1221
#5  0x0000002a9555abcd in print_handler (pdu=0x59c440, 
transport=0x599260, handler=0x505b70) at snmptrapd_handlers.c:658
#6  0x0000002a9555bf1f in snmp_input (op=Variable "op" is not available.
) at snmptrapd_handlers.c:1093
#7  0x0000002a95b1a7f9 in _sess_process_packet (sessp=0x5991e0, 
sp=0x59c7a0, isp=0x591830, transport=Variable "transport" is not available.
) at snmp_api.c:5334
#8  0x0000002a95b1b950 in _sess_read (sessp=0x5991e0, fdset=Variable 
"fdset" is not available.
) at snmp_api.c:5747
#9  0x0000002a95b1c169 in snmp_sess_read (sessp=0x5991e0, fdset=Variable 
"fdset" is not available.
) at snmp_api.c:5766
#10 0x0000002a95b1c1b0 in snmp_read (fdset=0x7fbffff1d0) at snmp_api.c:5386
#11 0x0000000000403cc0 in main (argc=Variable "argc" is not available.
) at snmptrapd.c:1255
(

It does not seem to be from a particular trap so I can not easily 
reproduce it.

My snmp.conf only contains additional mib dirs, and snmptrapd.conf contains:

traphandle      default   /usr/sbin/snmptthandler
ignoreauthfailure  1

I will provide more info after I do some more testing.

Alex



-------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to