The libstdc++ library offers debugging versions of containers and iterators, much like the windows standard library. The windows library does periodically catch bugs for us, but typically as a breaking commit on MCI.
Since many developers work primarily against libstdc++, we should consider enabling its debugging features to try to catch similar errors sooner:
http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html
One restriction is that I think we can only do this when we are building against our vendored versions of C++ libraries, but that isn't too hard to enforce.
- is duplicated by
-
SERVER-5851 Define _GLIBCXX_DEBUG in debug builds
- Closed
- related to
-
SERVER-15263 Guard setting -D_GLIBCXX_DEBUG behind a flag
- Closed