The issue occurs version 5.3.2.2 but I was able to reconstruct it by the
simaple
agaent example in the latest version.
My issue concern to aAddrTable.
After disconnecting the table contains two entries as expected named
"internal1" and "internal2".
but the first entry still stay active and includes a pointer to the freeed
session.
Does anyone know about this problem and if there is already a patch to fix
this issue or
a workaround to solve this issue?
as you can see in the following debug info:
Here the session free
(gdb) bt
#0 snmp_free_session (s=0x9844160) at snmp_api.c:1802
#1 0x00002ba148fefa28 in snmp_sess_close (sessp=0x98b7370) at
snmp_api.c:1904
#2 0x00002ba148fefdb0 in snmp_sess_select_info2_flags (sessp=0x0,
numfds=0x7fff65e5849c, fdset=0x7fff65e58330, timeout=0x7fff65e58480,
block=0x7fff65e58498,
flags=0) at snmp_api.c:6014
#3 0x00002ba148ff028f in snmp_sess_select_info_flags (sessp=0x0,
numfds=0x7fff65e5849c, fdset=0x7fff65e58400, timeout=0x7fff65e58480,
block=0x7fff65e58498,
flags=0) at snmp_api.c:5946
#4 0x00002ba148d8b300 in agent_check_and_process (block=1) at
snmp_agent.c:645
#5 0x0000000000401850 in main (argc=1, argv=0x7fff65e585c8) at
netsnmptmp.30870.c:231
Here is the table context as you can see the rowStatus still Active and the
session still exists
p *aAddrTable
$3 = {
name = 0x98c30f0 "internal0",
tDomain = {1, 3, 6, 1, 2, 1, 100, 1, 13, 0 <repeats 25 times>, 1153,
234309888568, 234309888568, 0, 0, 160190368, 25, 1, 3, 6, 1, 4, 1, 8072, 3,
2,
10, 0 <repeats 77 times>},
tDomainLen = 9,
tAddress = 0x98c1b10 "",
tAddressLen = 18,
timeout = 1000,
retryCount = 0,
tagList = 0x9841850 "internal0",
params = 0x98c4370 "internal0",
storageType = 5,
rowStatus = 1,
next = 0x98c4fe0,
sess = 0x9844160,
sessionCreationTime = 0
}
------------------------------------------------------------------------------
Cloud Computing - Latest Buzzword or a Glimpse of the Future?
This paper surveys cloud computing today: What are the benefits?
Why are businesses embracing it? What are its payoffs and pitfalls?
http://www.accelacomm.com/jaw/sdnl/114/51425149/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders