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

Make the ServerParameterSet map non-leaky

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Right now we leak the map of server parameters contained inside the ServerParametersSet class leaks memory on shutdown. As far as I can tell, it is a global and currently implicitly leaked somehow without ASAN complaining.

      -----------------------------
      Why this was a problem:

      We want to run WiredTiger in unit tests with higher level code. The setup of the WiredTigerKVEngine (the wt storage engine) requires manually setting up a couple server parameters here.

      However, ASAN catches the memory leak in unit tests: it appears to be more strict in unit test binaries than the mongod binary.

      --------------------------
      Temporary solution added in SERVER-43058: we used __lsan_ignore_object on the server parameters set up in wiredtiger_init.cpp to quiet ASAN for the unit tests.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-devtools DO NOT USE - Backlog - Dev Tools
              Reporter:
              dianna.hohensee Dianna Hohensee
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: