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

Warn or fail early on dynamic builds with toolchain compiler and tcmalloc

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1, 4.0.20, 4.2.9, 3.6.20
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2, v4.0, v3.6
    • Sprint:
      Dev Tools 2019-07-29, Dev Tools 2019-08-12, Dev Tools 2019-09-23, Dev Tools 2019-10-07, Dev Platform 2019-11-04

      Description

      It's tempting for MongoDB developers to use --link-model=dynamic to skip the slow link step when building the server. However, it's natural to also use tcmalloc (the default), the mongodbtoolchain compiler, and --dbg=on. This leads the server to crash with "memory allocation/deallocation mismatch", which is difficult to diagnose (SERVER-27675).

      To save developers from a frustrating investigation, SCons should fail if it detects this combination of flags. Perhaps the rule is enforced within files like mongodbtoolchain_v3_gcc.vars and its family.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              acm Andrew Morrow
              Reporter:
              jesse A. Jesse Jiryu Davis
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: