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

Make the ServerParameterSet map non-leaky

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

      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.

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

              Created:
              Updated:
              Resolved: