[AGENT++] AgentX::send_agentx stuck

Chetan Prabhakar chetan.prabhakar at oracle.com
Mon May 17 12:34:55 CEST 2010


On checking further, it appears that even the master agent is stuck on the "write" socket call. It appears that both the master and the sub-agent is trying to write into the socket at the same time.

 ffffffff7ded3be0 write    (5, 100179800, 44)
 ffffffff7ef1d760 int AgentX::send_agentx(int,const AgentXPdu&) (10013dc60, 5, 1001786f0, 1001aae90, ffffffff7f58c990, ffffffff7d00d4b0) + 268
 ffffffff7ef2a630 void MasterAgentXMib::answer(AgentXPdu&) (100135c40, 1001786f0, ffffffff7ef421b8, ffffffff7ef1d4f8, 230, 1001aae50) + 178
 ffffffff7ef2c5ec void MasterAgentXMib::process_ax_indexallocate(AgentXPdu&) (100135c40, ffffffff7d00d978, 1001786f0, 100176ff0, 0, 1) + 4fc
 ffffffff7ef2a36c void MasterAgentXMib::process_ax_request(AgentXPdu&) (100135c40, ffffffff7d00d978, d, 218, 34, 800) + 1c4
 ffffffff7ef29eb8 void MasterAgentXMib::process_ax_master_request(fd_set*,int*) (100135c40, ffffffff7d00dd30, ffffffff7d00fd34, ffffffff7f07f290, 1001aae10,  ffffffff7f58ca98) + 408
 ffffffff7ef297dc void MasterAgentXMib::process_agentx() (100135c40, ffffffff7ef30b10, 0, 100172480, ffffffff7f07aff0, 1) + 424
 ffffffff7ef26b5c void AgentXThread::run() (1001723a0, ffffffff7f07ef28, 154740, ffffffff7ef77268, 10013dc60, 10) + 2bc
 ffffffff7f1b8584 void TaskManager::run() (1001753e0, 1, 1001753e8, ffffffff7ded266c, 0, 1) + 40
 ffffffff7f1b773c void*thread_starter(void*) (100175418, ffffffff7f58ca98, 100131220, ffffffff7f3485d8, 800, 1000) + 104
 ffffffff7ded266c _lwp_start (0, 0, 0, 0, 0, 0)

Has anybody encountered a similar issue?

Thanks,
Chetan

-----Original Message-----
From: Chetan Prabhakar 
Sent: Monday, May 10, 2010 4:02 PM
To: agentpp at agentpp.org
Subject: [AGENT++] AgentX::send_agentx stuck

Hi,

 

The sub-agent call is getting stuck in the "write" socket call, writing on a TCP socket (to communicate to the master_agent), during the process of registering OIDs.

The agentpp code is compiled on Solaris 9 and being run on Solaris 10.

Has any similar issue been encountered earlier by anyone and resolved?

 

 ffffffff775d3be0 write    (70, 105e50b10, 3c)

 ffffffff7e91d760 int AgentX::send_agentx(int,const AgentXPdu&) (1001b6d20, 70, 1078ae000, 104befd70, 400, ffffffff7fffdd10) + 268

 ffffffff7e9216d8 int AgentXSlave::send(const AgentXPdu&) (1001b6d20, ffffffff7e91d4f8, ffffffff7ea7efa0, ffffffff7e942630, ffffffff7ea80298, 70) + 18

 ffffffff7e94fd30 void SubAgentXMib::allocate_index(const OctetStr&,Vbx*,int,AgentXSharedTable*,unsigned char) (ffffffff7ea7efa0, 1001b6d20, ffffffff7ea80898, 6c0, 400, 1078ae000) + 310

 ffffffff7e94b114 int AgentXSharedTable::allocate_index(const Oidx&) (1076d40a0, 1001bf0a0, 1, 12ff3c, ffffffff7cd64050, ffffffff7ea7aff0) + 6c

 ffffffff7cd65d50 int OMF::PortalMibTable::allocate_index(const Oidx&) (1076d40a0, ffffffff7fffe0e8, 1400, 192f3c, ffffffff7cd83dd4, ffffffff7ed369f8) + 8

 ffffffff7cd64050 OMF::RegistryMibTable::RegistryMibTable #Nvariant 1(const BAS::String&,const index_info*,unsigned,const Oidx*,SubAgentXMib*,const char*,RWTValMap<BAS::String,BAS::InstrumentationProbe::ProbeInfo,std::less<BAS::String>,std::allocator<std::pair<const BAS::String,BAS::InstrumentationProbe::ProbeInfo> > >&,OMF::SnmpIf*,const int) (1076d40a0, 1077c9240, ffffffff7fffe0e0, ffffffff7fffe0e8, ffffffff7fffe120, ffffffff7fffe128) + 2c0

 ffffffff7cd83dd4 bool OMF::Snmp::registerRegistryTable() (1001b6fb0, 1d80, 1076d40a0, ffffffff7fffe318, ffffffff7fffe350, ffffffff7fffe370) + 10c

 ffffffff7cd839e4 bool OMF::Snmp::registerMibTableObjects() (1001b6fb0, 1046210d0, ffffffff7ed48678, ffffffff7ebb87f8, ffffffff7ea7aff0, 0) + 24

 ffffffff7cd8254c bool OMF::Snmp::registerToMasterSnmp() (1001b6fb0, 1, 18c69c, ffffffff7cdbfbb8, ffffffff7ab61a48, 1001b30a0) + cc

 ffffffff7cd9cf74 bool OMF::SnmpServer::startup() (1001b5170, ffffffff7cf1a548, 171bd0, ffffffff7aa1c484, ffffffff7cf0eb28, 1001b6fb0) + 2c

 ffffffff7cdbfbb8 bool OMF::Controller::startup() (100145708, 100145708, 13e17c, 1, ffffffff7ab61a48, 1001b30a0) + 80

 ffffffff7aa1c484 CTL::Base::Base #Nvariant 1(const BAS::String&,const BAS::String&,const bool,const BAS::String&) (100173ad0, ffffffff7fffe9e0, 0, 100173ca8, ffffffff7fffe960, 100173c70) + 78c

 00000001000085f4 main (100173ad0, ffffffff7fffee98, 0, ffffffff7fffec10, ffffffff7fffec18, 10000c7e4) + 7c4

 00000001000076dc _start (0, 0, 0, 0, 0, 0) + 17c

 

I have the master_agent stack trace, along with the debug logs for master and sub-agents. Would it help identify any potential issue, if I provide them? The master_agent is built using the sample master agent provided.

 

The version of the libraries are as below:

 

 snmp_pp_v3.2.20 

 agent_pp_v3.5.26

 agentx_pp_v1.4.14

 

Thanks,

Chetan
_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://lists.agentpp.org/mailman/listinfo/agentpp



More information about the AGENTPP mailing list