[AGENT++] Lots of WARNING: Synchronized: recursive trylocking detected (id) messages

MATTY, Steven steven.matty at astrium.eads.net
Wed Mar 4 12:20:47 CET 2015


Hi

I have recently updated from   agent++-3.5.31 / snmp++-3.2.25   to   agent++-4.0.2 / snmp++-3.3.4
I also now use agentx++ in order to connect with the OSPF MIB from quagga's ospfd subagent.

I've noticed that when viewing a MIB table (using iReasoning) there is a burst of warning messages :

WARNING: Synchronized: recursive trylocking detected (id)!:

The table is cleared/recreated every 5 seconds by a worker thread and checked that the table is not in the middle of being updated when viewing table contents within the MIB Browser
I've even tried removing lock_mib()/unlock_mib() and start_synch()/end_synch() calls when updating the table.

and also when doing repeated SNMP GET on an OID within our MIB (code generated by AgentX++ and not-modified)
in a short timespan I also get these warnings.

Are they expected, and if not, indicative of a locking/sync issue somewhere?

I've tried building our agent without threads but it appears AgentX++ requires threads enabled :

../include/agentx_pp/agentx++.h:33:2: error: #error AGENTPP_USE_THREAD_POOL must be defined in agent++.h of AGENT++ >= v3.5c
../include/agentx_pp/agentx_threads.h:28:2: error: #error "To use AgentX++ threads must be enabled in AGENT++"

(indeed it is not possible to build snmp++ if configured with -disable-threads :

/tmp/snmp++-3.3.4/include/snmp_pp/config_snmp_pp.h:79:5: error: #if with no expression

Regards


Steve



This email (including any attachments) may contain confidential
and/or privileged information or information otherwise protected
from disclosure. If you are not the intended recipient, please
notify the sender immediately, do not copy this message or any
attachments and do not use it for any purpose or disclose its
content to any person, but delete this message and any attachments
from your system. Airbus Defence and Space Limited disclaims any and all liability if this email transmission was virus corrupted,
altered or falsified.
-o-
Airbus Defence and Space Limited, Registered in England and Wales No. 2449259
Registered Office:
Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, England


More information about the AGENTPP mailing list