-
Type:
Improvement
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.3.3
-
Component/s: Internal Code
-
0
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
For example, the wired tiger shutdown code decides whether or not to leak memory by checking preprocessor variables, but only checks the clang version (__has_feature(address_sanitizer)):
This can lead to confusion when seeing memory leaks when ASan is used with the gcc compiler.
As suggested by max.hirschhorn, both the gcc and clang variables should be checked, as is done in shell_utils.cpp:
https://github.com/mongodb/mongo/blob/r3.3.3/src/mongo/shell/shell_utils.cpp#L154-L169