Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48346

Fix lifetime issues for barriers captured by reference

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.8, 4.4.0-rc8, 4.7.0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2
    • Sprint:
      Service arch 2020-06-01, Service arch 2020-06-15
    • Linked BF Score:
      0

      Description

      We have instances in unit-tests, where we create a barrier, create a lambda that captures the barrier by reference, and then move the lambda to be executed by a separate thread (e.g., this one). In some cases, the barrier can go out of scope and freed, while the other thread is yet to finish the execution of the lambda. This incidents could sporadically cause access violation failures in unit-tests.

        Attachments

          Activity

            People

            Assignee:
            amirsaman.memaripour Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour Amirsaman Memaripour
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: