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

Do not validate deallocations if ActivateGuardedSampling has not been called

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch
    • ALL
    • v8.0

      As described in an issue I filed for tcmalloc (https://github.com/google/tcmalloc/issues/229) if a sampled allocation happens to fall within the address space of the GuardedPageAllocator, then it will be validated upon deallocation, and there may be a crash if a memory bug is detected. (Note that, based on a reply on the issue, the likely issue is that the GuardedPageAllocator's address space overlaps with that of system alloc).

      We should ensure that we won't crash on memory errors on our own patch, and also move the previously added line that sets the sampling rate to 0 to the top of the mongo initializer.

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

              Created:
              Updated:
              Resolved: