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

Fix use-after-free ClockSourceMock bug in transaction_coordinator_test

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • ALL
    • Sharding 2020-08-24
    • 0

      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.

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

              Created:
              Updated:
              Resolved: