[AGENT++] snmpGet locked when compiled with -D_NO_SNMPv3

dennis w dennis_w1 at hotmail.com
Wed May 3 05:15:28 CEST 2006


Greetings,

When tried with snmpGet.cpp example under snmp++/consoleExamples, it worked 
with default compiling options. But it locked when compiled with 
-D_NO_SNMPv3 compiling option (the lib was built with the same option). It 
will not return or timeout.

Here are the stackstrace ,

(gdb) where
#0  0x002077a9 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#1  0x00204797 in _L_mutex_lock_28 () from /lib/tls/libpthread.so.0
#2  0x00f49b18 in __JCR_LIST__ () from /home/snmp++/lib/libsnmp++.so
#3  0xbfffafa4 in ?? ()
#4  0xbfff9518 in ?? ()
#5  0x00f1742c in SnmpSynchronized::lock (this=0xbfffac24) at 
reentrant.cpp:72
#6  0x00f1742c in SnmpSynchronized::lock (this=0xbfffac20) at 
reentrant.cpp:72
#7  0x00f32d57 in Snmp::snmp_engine (this=0xbfffac20, pdu=@0xbfffab30,
    non_reps=0, max_reps=0, target=@0xbfffaa40, cb=0, cbd=0x0, fd=-1)
    at uxsnmp.cpp:1720
#8  0x00f30b68 in Snmp::get (this=0xbfffac20, pdu=@0xbfffab30,
    target=@0xbfffaa40) at uxsnmp.cpp:1015
#9  0x0804a038 in main (argc=4, argv=0xbfffafa4) at snmpGet.cpp:350

Can we use   -D_NO_SNMPv3 for snmp v1 and v2c? Or we need something more for 
the compiling settings? Could it be a bug?

_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft® 
SmartScreen Technology. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.




More information about the AGENTPP mailing list