Hi ,
    I am using snmpd (5.3.1) with agentx support . I have a subagent with sends continously send_v2trap() traps to the master agent. But the issue is snmpd hangs when send_v2trap is called continously . Below is the stack trace.

test1@/# pstack `pgrep demo`
2012:   ./demo_module_8
 fe984f57 send     (9, 811a618, 1fc, 0)
 fef39cd3 netsnmp_unix_send (809ef50, 811a618, 1fc, 8115a8c, 8115a90) + 103
 fef03fa6 _sess_async_send (80b8f00, 8115a58, 0, 0) + 8b6
 fef0420d snmp_sess_async_send (80b8f00, 8115a58, 0, 0) + 5d
 fef036cb snmp_async_send (80694b0, 8115a58, 0, 0) + 4b
 fef035f8 snmp_send (80694b0, 8115a58) + 38
 feac8425 send_trap_to_sess (80694b0, 80ba2c0) + 155
 feac7f50 netsnmp_send_traps (ffffffff, ffffffff, feb09744, a, 8116d58, 0) + 5c0
 feac8004 send_enterprise_trap_vars (ffffffff, ffffffff, feb09744, a, 8116d58) + 44
 feac84ea send_trap_vars (ffffffff, ffffffff, 8116d58) + 6a
 feac8584 send_v2trap (8116d58) + 34
 08050fef send_trap (8047c04, 8047bf7, 8047c18, f, 8047c0f, 8047bbe) + 28f
 08050d27 main     (1, 8047c84, 8047c8c) + 1a7
 08050aba _start   (1, 8047d60, 0, 8047d70, 8047d8d, 8047d98) + 7a

test1@/# pstack `pgrep snmpd`
 fea14f57 send     (f, 8181bb0, 204, 0)
 fed59cd3 netsnmp_unix_send (81224a0, 8181bb0, 204, 8200574, 8200578) + 103
 fed23fa6 _sess_async_send (816cdf0, 8200540, 0, 0) + 8b6
 fed2420d snmp_sess_async_send (816cdf0, 8200540, 0, 0) + 5d
 fed236cb snmp_async_send (8178dc0, 8200540, 0, 0) + 4b
 fed235f8 snmp_send (8178dc0, 8200540) + 38
 fee62f5b handle_master_agentx_packet (1, 8178dc0, 7866df2, 816ffa8, 0) + 50b
 fed24f16 _sess_process_packet (816cdf0, 8178dc0, 8192a58, 81224a0, 82b7cc8, 6e) + 876
 fed25f68 _sess_read (816cdf0, 8047c34) + e78
 fed26354 snmp_sess_read (816cdf0, 8047c34) + 34
 fed250c8 snmp_read (8047c34) + 48
 08054180 receive  (8047e1c, 8047d80, feffa7c0, fefd315a, feffa288, 8047cf4) + 3e0
 08053b7a main     (4, 8047dc4, 8047dd8) + 14ca
 0805218a _start   (4, 8047e84, 8047e98, 8047ce4, 8047e9e, 0) + 7a

Both master and sub-agent are waiting in send. Any pointers will be really helpful.

thanks,
Pradhap
-------------------------------------------------------------------------
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