mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-28 16:24:56 +01:00
c60dea0181
Also cleans up some handling around how undefined behavior sanitizer finds the symbolizer, and suppresses some undefined behavior in mozjs that prevented the dbtests from passing. In addition, it was recognized that we can reduce the scope where we inhibit UBSANs checks for misaligned access to only wiredtiger, so do that too.
42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
# Don't UBSAN most of third_party, but do ubsan WT
|
|
src:src/third_party/IntelRDFPMathLib20U1/*
|
|
src:src/third_party/asio-asio-*/*
|
|
src:src/third_party/boost-*/*
|
|
src:src/third_party/gperftools-*/*
|
|
src:src/third_party/libstemmer_c/*
|
|
src:src/third_party/mozjs-*/*
|
|
src:src/third_party/murmurhash3/*
|
|
src:src/third_party/pcre-*/*
|
|
src:src/third_party/s2/*
|
|
src:src/third_party/snappy-*/*
|
|
src:src/third_party/tz/*
|
|
src:src/third_party/unicode-*/*
|
|
src:src/third_party/yaml-cpp-*/*
|
|
src:src/third_party/zlib-*/*
|
|
|
|
# See SERVER-22705. We depend on the C flexible array trick
|
|
# which trips up UBSAN.
|
|
src:src/mongo/db/storage/mmap_v1/*
|
|
|
|
# See SERVER-23713. The pipeline arith expressions and accumulators need
|
|
# to be re-written to avoid undefined behavior.
|
|
fun:_ZNK5mongo13ExpressionAdd16evaluateInternalEPNS_9VariablesE
|
|
fun:_ZNK5mongo18ExpressionMultiply16evaluateInternalEPNS_9VariablesE
|
|
fun:_ZN5mongo14AccumulatorSum15processInternalERKNS_5ValueEb
|
|
fun:_ZNK5mongo5Value12coerceToLongEv
|
|
|
|
# Blacklisting these functions due to a bug in libstdc++:
|
|
# http://stackoverflow.com/questions/30122500/is-this-code-really-undefined-as-clang-seems-to-indicate
|
|
fun:_ZStaNRSt13_Ios_FmtflagsS_
|
|
fun:_ZStanSt13_Ios_FmtflagsS_
|
|
|
|
# Blacklisting these functions due to a bug in libstdc++:
|
|
# Maybe https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60734 or similar
|
|
fun:_ZNSt8_Rb_tree*_M_get_insert_hint_unique_posESt23*
|
|
fun:_ZNSt8_Rb_tree*_M_insert_I*
|
|
# Maybe https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 or similar
|
|
fun:_ZNSt8_Rb_tree*_M_insert_nodeE*
|
|
|
|
# See https://bugzilla.mozilla.org/show_bug.cgi?id=744965
|
|
fun:_ZN7mozilla*NumberEqualsInt32*
|