Skip to content

[BZ-1238] Skipping profiles while parsing IORs -- race condition #1238

@jwillemsen

Description

@jwillemsen
Field Value
Bugzilla ID 1238
Reporter Nanbor Wang
Assigned to DOC Center Support List (internal)
Product TAO
Component ORB
Version 1.2.3
Platform / OS All / All
Priority P3
Severity normal
Status NEW
Resolution
Created 2002-06-26 16:33:37 -0500

Originally posted by Nanbor Wang on 2002-06-26 16:33:37 -0500


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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions