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

Cleanup order in Grid::clearForUnitTests can cause access to freed memory

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Sharding 2021-01-11, Sharding 2021-01-25
    • 45

    Description

      Currently, clearForUnitTests clears the catalog client before the catalog cache. When it's CatalogCache to call it's destructor, it also tries to wait for all the pending task to complete. One of the possible tasks are calls to _lookupDatabase, which can eventually call ShardingCatalogClient::getDatabase.

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: