[AGENT++] Is it possible to return error from RowStatus set function?

dennis w dennis_w1 at hotmail.com
Mon Apr 24 07:05:07 CEST 2006


It seems to me that we cannot return error code  
mibTableRowStatus::set(const Vbx& vb)  when creating a row at dynamic table. 
Here is what I got from the   "cmd_exe_mib" example.

In the cmd_exe_mib.cpp, we have

int cmdExecutionCmdRowStatus::set(const Vbx& vb)
{
...
       if (vb.get_value(l) != SNMP_CLASS_SUCCESS)
                return SNMP_ERROR_WRONG_TYPE;
...

But if we actually return this error "SNMP_ERROR_WRONG_TYPE".  The agent 
will just lock. You have to kill -9 to kill the process (at linux).

The stack trace is following,

#0  0x001ac7a9 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#1  0x001a9797 in _L_mutex_lock_28 () from /lib/tls/libpthread.so.0
#2  0x0061f330 in __JCR_LIST__ () from /home/agent++/lib/libagent++.so
#3  0xbfff8700 in ?? ()
#4  0xbfff8638 in ?? ()
#5  0x0056d862 in Agentpp::Synchronized::lock (this=0x8128544) at 
threads.cpp:395
#6  0x0056d862 in Agentpp::Synchronized::lock (this=0x8128514) at 
threads.cpp:395
#7  0x0056c7c6 in Agentpp::ThreadManager::start_synch (this=0x8128510)
    at threads.cpp:140
#8  0x00557024 in Agentpp::MibTable::remove_unused_rows (this=0x8128510) at 
mib.cpp:2467
#9  0x0055e041 in Agentpp::Mib::cleanup (this=0x8123e90) at mib.cpp:4030
#10 0x0805adcc in main (argc=1, argv=0xbfff8ac4) at agent.cpp:522

Is that something we should not do , or it is possible a bug?

_________________________________________________________________
MSN® Calendar keeps you organized and takes the effort out of scheduling 
get-togethers. 
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