Dear All
Happy new year to all of you.
I am running net-snmp 5.4 on RHEL 4.0 64 bit OS. I have been seeing the
subagent crashing sometimes while sending traps.
The stack trace is as follows:
(Please let me know if you any questions in understaning the problem)
----------------------
#0 0x000000000047cc6a in snmp_sess_async_send (sessp=0x822b20,
pdu=0x2a97e76260, callback=0, cb_data=0x0) at snmp_api.c:4948
#1 0x000000000043cc4a in send_trap_to_sess (sess=0x7b1630,
template_pdu=0x2a97e11bf0) at agent_trap.c:909
#2 0x000000000043ce5d in netsnmp_send_traps (trap=8536080,
specific=-1746854928, enterprise=0x5eb6c0, enterprise_length=10,
vars=0x2a97e27810, context=0x20d97e06 <Address 0x20d97e06 out of bounds>,
flags=0) at agent_trap.c:792
#3 0x000000000043d26e in send_enterprise_trap_vars (trap=-1, specific=-1,
enterprise=0x5eb6c0, enterprise_length=10, vars=0x2a97e242a0) at
agent_trap.c:830
#4 0x000000000043d324 in send_v2trap (vars=0x2a97e242a0) at agent_trap.c:990
#5 0x000000000041d281 in ConstructAndSendV2Trap (var_list=0x2a97e242a0,
newAlarmEvent=0x7fbfffae18) at notify_pnu.c:163
#6 0x000000000041e1b3 in send_pnuBadBeamBoresightStdV_trap
(newAlarmEvent=0x7fbfffae18) at notify_pnu.c:672
#7 0x000000000042d6ed in CAlarmAgent::SendTrap (this=0x1e493b,
pAlarmMessage=0x7fbfffae18) at CAlarmAgent.cpp:338
#8 0x000000000042ce47 in CAlarmAgent::GenerateAlarm (this=0x5f0620,
pAlarmMessage=0x7fbfffae18) at CAlarmAgent.cpp:87
#9 0x000000000040e1b0 in CNetmanTask::HandleLocalMsg (this=0x772a30,
p_msg=0x7fbfffae18) at CNetmanTask.cpp:83
#10 0x00000000004318bc in CLocalTask::DispatchMessage (this=0x772a30) at
CLocalTask.cpp:184
#11 0x0000000000406142 in HandleNormalMsgThread () at netman.cpp:173
#12 0x0000000000406609 in main (argc=1984827, argv=0x6) at netman.cpp:417
---------------------
Looks like, there is some corruption happening. I am quite not sure how to
catch this kind of thing. In function#3 above, I see that values for trap and
specific are -1, but right after function#2 is called, the values are changing.
This confirms the corruption. But I do not know how.
Any help is greatly appreciated to solve this problem.
Thank you very much,
Reddy
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders