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

Guard setting -D_GLIBCXX_DEBUG behind a flag

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.7
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      On GCC 4.8.2 on Ubuntu 14.04, there appears to be a concurrency error in the _GLIBCXX_DEBUG version of std::list<T> that leads to segfaults. I've dug down into it, and thus far failed to make the crashing uses of std::list<T> crash without _GLIBCXX_DEBUG. Any of the C++ unit tests in src/mongo/db/repl that make serious use of ReplicationExecutor crash within 500 runs on my desktop with _GLIBCXX_DEBUG enabled, but run without issue for tens of thousands of iterations without it enabled.

      So, I propose to guard _GLIBCXX_DEBUG with a SCons flag, --enable-glibcxx-debug, and default it to off.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              schwerin Andy Schwerin
              Reporter:
              schwerin Andy Schwerin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: