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

use-after-delete of logv2 getTenantID callback singleton

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2021-09-20

    Description

      Came up in cxx-discuss slack conversation. Here's the log:

      If your code is running during static-duration shutdown (i.e. after main), it looks like there is a potential use-after-delete bug in introduced in SERVER-59463. https://github.com/mongodb/mongo/blame/fa7f62a123/src/mongo/logv2/log_detail.cpp#L50 That local static would be dead at some point after main exits, but while user code could still depend on it for logging.
      (A StaticImmortal would fix it)

      Attachments

        Activity

          People

            sara.golemon@mongodb.com Sara Golemon
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: