https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html
By compiling with this flag the stl adds asserts to containers and iterators to detect for misuse.
For example, comparing iterators from two different objects would fall under this case and be caught by an assert.
For compiles we need to compile with `--use-glibcxx-debug --dbg=on --allocator=system`
The goal of this ticket is to
1. See if we can compile mongodb with debug mode
2. If we can compile, then enable some visibility to start evaluating the usefulness of debug mode (can be done though a nightly job)
- is duplicated by
-
SERVER-57510 Re-investigate applicability of __GLIBCXX_DEBUG
- Closed