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

Fix use-after-free ClockSourceMock bug in transaction_coordinator_test

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Sharding
    • ALL
    • Sharding 2020-08-24
    • 0

    Description

      In transaction_coordinator_test, a ClockSourceMock gets associated to a service context that is already used by the WaitForMajorityService.

      As a result, it is potentially possible that a pointer to the original service context's ClockSource is used when waiting on an operation context instantiated before the ClockSourceMock.

      Check BF-17382 for additional details.

      Attachments

        Issue Links

          Activity

            People

              pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
              pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: