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

Copy Collection NamespaceString before yielding locks in AutoGetCollectionForRead

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.11, 4.2.0-rc2, 4.3.1
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2, v4.0
    • Sprint:
      Execution Team 2019-06-17
    • Linked BF Score:
      0

      Description

      AutoGetCollectionForRead yields its locks here, then tries to print a const NamespaceString& nss here.

      If the collection is dropped after the locks are yielded and before the line is printed, then it will result in an invalid access.

      We should copy the NamespaceString before yielding locks to print later on.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: