[AGENT++] SNMP request blocked?

Kerrison, Adam Adam_Kerrison at bmc.com
Thu Sep 22 14:15:18 CEST 2011


I've run into a situation where we are seeing a thread blocked in SNMP++:

Thread 21 (Thread 0x4b0c1940 (LWP 28959)):
#0  0x00000030ff80dd9c in recvfrom () from /lib64/libpthread.so.0
#1  0x00002aecf1bb878f in receive_snmp_response (sock=138, snmp_session=...,
    pdu=..., fromaddress=..., engine_id=..., process_msg=true)
    at uxsnmp.cpp:338
#2  0x00002aecf1b9b045 in CSNMPMessageQueue::HandleEvents (
    this=0x2aaae41044d0, readfds=0x2aaaac898d10, fds=1) at msgqueue.cpp:521
#3  0x00002aecf1b90fab in CEventList::HandleEvents (this=0x2aaae40aa790,
    readfds=0x2aaaac898d10, fds=1) at eventlist.cpp:182
#4  0x00002aecf1b917b7 in EventListHolder::SNMPProcessPendingEvents (
    this=0x2aaae40aa780) at eventlistholder.cpp:120
#5  0x00002aecf1b91ac0 in EventListHolder::SNMPProcessEvents (
    this=0x2aaae40aa780, max_block_milliseconds=1000)
    at eventlistholder.cpp:182
#6  0x00002aecf1b91b3e in EventListHolder::SNMPBlockForResponse (
    this=0x2aaae40aa780, req_id=22733, pdu=...) at eventlistholder.cpp:64
#7  0x00002aecf1bbab0b in Snmp::snmp_engine (this=0x2aaae415ddc0, pdu=...,
    non_reps=0, max_reps=0, target=..., cb=0, cbd=0x0, fd=-1,
    reports_received=0) at uxsnmp.cpp:1891
#8  0x00002aecf1bbb478 in Snmp::get_next (this=0x2aaae415ddc0, pdu=...,
    target=...) at uxsnmp.cpp:1066

I don't see how this could happen - it should timeout. Anyone else seen this ? I'm stumped ...

I'm using SNMP 3.2.25 but looking at the mailing list archives I see there are a lot of patches - should I apply these and see if I can still reproduce the problem?

Are there any plans for another SNMP++ release which includes the various patches?

Thanks

Adam



More information about the AGENTPP mailing list