Hi All
I am running subagent on a 64 bit Linux OS (RHEL 4). While sending an snmp trap using the code generated by mib2c (with option notify), my subagent crashes. This does not happen all the time, it happens once in while (during over night testing). The trap actually comes as a message to subagent from another process on the same machine and then it will be constructed as trap and sent as v2 trap to the snmptrapd (I suppose).

I am using NET-SNMP 5.3.1. The stack trace is as follows:
Crash 1: (Until #4 from the bottom is my subagent code)
#0 0x00000000004853ca in snmp_sess_async_send (sessp=0x82ce10, pdu=0x2a97e055a0, callback=0, cb_data=0x0) at snmp_api.c:4928
#1 0x0000000000445c9a in send_trap_to_sess (sess=0x830770, template_pdu=0x2a97e060a0) at agent_trap.c:883
#2 0x0000000000445ead in netsnmp_send_traps (trap=8576144, specific=-1746902880, enterprise=0x5f0660, enterprise_length=10, vars=0x2a97e05480,
context=0x5d6a9a32 <Address 0x5d6a9a32 out of bounds>, flags=0) at agent_trap.c:783
#3 0x0000000000446223 in send_enterprise_trap_vars (trap=1487784, specific=1162853764, enterprise=0xf4240, enterprise_length=0, vars=0x77168)
at agent_trap.c:804
#4 0x0000000000423abb in send_pnuBadPBSStdVCurrent_trap (newAlarmEvent=0x7fbfffaec8) at notify_pnu.c:2254
#5 0x0000000000436e1d in CAlarmAgent::SendTrap (this=0x5f5700, pAlarmMessage=0x7fbfffaec8) at CAlarmAgent.cpp:228
#6 0x00000000004368b6 in CAlarmAgent::GenerateAlarm (this=0x5f5700, pAlarmMessage=0x7fbfffaec8) at CAlarmAgent.cpp:83
#7 0x000000000040dd56 in CNetmanTask::HandleLocalMsg (this=0x777a30, p_msg=0x7fbfffaec8) at CNetmanTask.cpp:73
#8 0x000000000043a99c in CLocalTask::DispatchMessage (this=0x777a30) at CLocalTask.cpp:184
#9 0x0000000000405db2 in HandleNormalMsgThread () at netman.cpp:157
#10 0x00000000004062a9 in main (argc=1487784, argv=0x6) at netman.cpp:442

Crash 2: (Until #7 from the bottom is my subagent code)
#0  0x0000003850469311 in _int_malloc () from /lib64/tls/libc.so.6
#1  0x000000385046aaa2 in malloc () from /lib64/tls/libc.so.6
#2  0x0000000000463219 in _copy_varlist (var=0x2ce8a01230, errindex=0, copy_count=9994) at snmp_client.c:415
#3  0x00000000004632a8 in _copy_pdu_vars (pdu=0x385062e620, newpdu=0x2ce8a06a40, drop_err=-1073763792, skip_count=1348658720,
    copy_count=-1746926280) at snmp_client.c:486
#4  0x0000000000442e96 in send_trap_to_sess (sess=0x82cf50, template_pdu=0x2b52f9d3b0) at agent_trap.c:871
#5  0x00000000004430cd in netsnmp_send_traps (trap=8557488, specific=1392104368, enterprise=0x5ec760, enterprise_length=10,
    vars=0x2a97e2f7c0, context=0x800 <Address 0x800 out of bounds>, flags=0) at agent_trap.c:783
#6  0x0000000000443443 in send_enterprise_trap_vars (trap=1348658720, specific=69473, enterprise=0x7fbfffaa30,
    enterprise_length=1348658720, vars=0x2a97e00538) at agent_trap.c:804
#7  0x000000000041decd in send_pnuZeroPBSExceedSNR_trap (newAlarmEvent=0x7fbfffaed8) at notify_pnu.c:969
#8  0x0000000000433ffd in CAlarmAgent::SendTrap (this=0x385062e620, pAlarmMessage=0x2a97e00538) at CAlarmAgent.cpp:191
#9  0x0000000000433b70 in CAlarmAgent::GenerateAlarm (this=0x5f1f20, pAlarmMessage=0x7fbfffaed8) at CAlarmAgent.cpp:83
#10 0x000000000040ce64 in CNetmanTask::HandleLocalMsg (this=0x774a30, p_msg=0x7fbfffaed8) at CNetmanTask.cpp:72
#11 0x0000000000437bbc in CLocalTask::DispatchMessage (this=0x774a30) at CLocalTask.cpp:184
#12 0x0000000000405d4c in HandleNormalMsgThread () at netman.cpp:157
#13 0x0000000000406240 in main (argc=1348658720, argv=0x6) at netman.cpp:442

Any help is greatly appreciated.

Thank you very much
Reddy

-------------------------------------------------------------------------
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