Bug 2079

Summary: Race condition in Adapter_Registry
Product: TAO Reporter: Nanbor Wang <bala>
Component: ORBAssignee: DOC Center Support List (internal) <tao-support>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 1.4.4   
Hardware: All   
OS: All   

Description Nanbor Wang 2005-04-04 20:57:28 CDT
ooks like there is a race condition in
TAO_Adapter_Registry. I happened to run into this when I was
inspecting some crashes. See here

 -------------------------- Thread one -------
resolve_initial_references ("IORTable");
..
TAO_ORB_Core::resolve_ior_table_i ()
..
TAO_Adapter_Registry::insert ()

---------------------------------------------

--------- Thread two ----------------------------
ORB::run ()
..
TAO_Request_Dispatcher::dispatch ()
TAO_Adapter_Registry::dispatch ()
-------------------------------------------------

Has anyone run into this before? We have been able to work around this
problem by somecode changes for now. WOuld be interested to know if
someone is adding a fix without grabbing a lock to the critical path?
Comment 1 Nanbor Wang 2005-04-04 20:58:19 CDT
Looks like a refcount on dispatch pattern needs to be inplemented if we have to
prevent from grabbing a lock on the critical path. Just stashing this bug away
for later reference. 
Comment 2 Johnny Willemsen 2007-09-20 03:09:01 CDT
to pool