Hello,
>From time to time I'am expieriencing some random SNMP crashes like this:
#CRASH 1
----------------------------------------------------------------------------
--------------------------------------
#0 in agentx_check_packet (
Packet=0x67458bbc <error: Cannot access memory at address 0x67458bbc
>,
Packet_len=2564808564) at mibgroup/agentx/protocol.c:2045
#1 in _sess_read (sessp=sessp@entry=0x207e80,
fdset=fdset@entry=0x7ec7b9e0) at snmp_api.c:6252
#2 in snmp_sess_read2 (sessp=sessp@entry=0x207e80,
fdset=fdset@entry=0x7ec7b9e0) at snmp_api.c:6425
#3 snmp_read2
#4 snmp_synch_response_cb
#5 agentx_synch_response
#6 agentx_open_session
#7 agentx_open_master_session
^ which I'am calling when agentx_send_ping(main_session) returns false
I am doing this check every now and then to make sure if agentx is still
working properly.
Isn't Packet_len=2564808564 too large?? Or something other is wrong?
Or maybe should I use different function, not agentx_send_ping to check
connection?
#CRASH 2
----------------------------------------------------------------------------
--------------------------------------
#0 in snmp_sess_read2 (sessp=sessp@entry=0x1916e80,
fdset=fdset@entry=0x731fec88) at snmp_api.c:6428
#1 in snmp_read2 (fdset=fdset@entry=0x731fec88) at snmp_api.c:5940
#2 in agent_check_and_process (block=0) at snmp_agent.c:824
^which I'am calling in my main loop in seperate thread like this:
while(keep_running){
agent_check_and_process(0)
usleep(10*1000) //10ms
}
Am i doing it right ? Or is this a bug?
I'am using Net-SNMP version 5.9
Can you help me please?
Greetings,
Lukasz Bolda
_______________________________________________
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