Guard setting -D_GLIBCXX_DEBUG behind a flag

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 2.7.7
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: