Bug 1238 - Skipping profiles while parsing IORs -- race condition
Summary: Skipping profiles while parsing IORs -- race condition
Status: NEW
Alias: None
Product: TAO
Classification: Unclassified
Component: ORB (show other bugs)
Version: 1.2.3
Hardware: All All
: P3 normal
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks: 319 1273
  Show dependency tree
 
Reported: 2002-06-26 16:33 CDT by Nanbor Wang
Modified: 2006-08-30 09:11 CDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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