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

Add additional invariants to tcmalloc to check for invalid GPA usage

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch
    • Fully Compatible
    • Service Arch 2024-05-13
    • 107

      While investigating BF-32587, we have two predominant theories about what could be happening:

      • The GuardedPageAllocator is somehow getting initialized twice, causing it to allocate memory, then forget that it allocated that memory when asked to deallocate it.
      • Memory allocated by a seperate tcmalloc component is ending up in the address space that the GuardedPageAllocator thinks that it owns.

      We can set up simple invariants to try to catch these situations, which would be a very useful debugging aid if triggered and otherwise should have a minimal impact on the system.

            Assignee:
            erin.mcnulty@mongodb.com Erin McNulty
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: