Bug 1238

Summary: Skipping profiles while parsing IORs -- race condition
Product: TAO Reporter: Nanbor Wang <bala>
Component: ORBAssignee: DOC Center Support List (internal) <tao-support>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 1.2.3   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 319, 1273    

Description Nanbor Wang 2002-06-26 16:33:37 CDT
Review of the profile parsing code suggests that if two threads are parsing the
IOR, one of the threads could potentially skip a profile. Let us imagine this
scenario

- Two threads are parsing the profiles in the IOR. Both the threads get a
pointer to the first profile. Both the threads find that the first profile is
not usable. 

- Now the first thread increments the profile pointer and sets the next pointer
profile. 

- The second thread could do the same thing too (looking at the way the code is
structured). This would make the second thread skip a profile. Worst of all, if
that profile (the third one) is not usable it could return an exception.
Comment 1 Nanbor Wang 2002-07-04 12:13:15 CDT
Assigning it to me
Comment 2 Nanbor Wang 2002-07-04 12:17:29 CDT
Accepting the bug
Comment 3 Nanbor Wang 2002-08-08 22:16:34 CDT
Assigning it to Irfan
Comment 4 Irfan Pyarali 2002-08-09 10:51:14 CDT
Accepted
Comment 5 Johnny Willemsen 2006-08-30 09:11:59 CDT
to general pool