Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build.sh
Show All 36 Lines | |||||
SAN_SUPP_DIR="${TOPLEVEL}/test/sanitizer_suppressions" | SAN_SUPP_DIR="${TOPLEVEL}/test/sanitizer_suppressions" | ||||
SAN_LOG_DIR="${BUILD_DIR}/sanitizer_logs" | SAN_LOG_DIR="${BUILD_DIR}/sanitizer_logs" | ||||
# Create the log directory if it doesn't exist and clear it | # Create the log directory if it doesn't exist and clear it | ||||
mkdir -p "${SAN_LOG_DIR}" | mkdir -p "${SAN_LOG_DIR}" | ||||
rm -rf "${SAN_LOG_DIR}"/* | rm -rf "${SAN_LOG_DIR}"/* | ||||
# Sanitizers options, not used if sanitizers are not enabled | # Sanitizers options, not used if sanitizers are not enabled | ||||
export ASAN_OPTIONS="log_path=${SAN_LOG_DIR}/asan.log" | export ASAN_OPTIONS="malloc_context_size=0:log_path=${SAN_LOG_DIR}/asan.log" | ||||
export LSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/lsan:log_path=${SAN_LOG_DIR}/lsan.log" | export LSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/lsan:log_path=${SAN_LOG_DIR}/lsan.log" | ||||
export TSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/tsan:log_path=${SAN_LOG_DIR}/tsan.log" | export TSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/tsan:log_path=${SAN_LOG_DIR}/tsan.log" | ||||
export UBSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/ubsan:print_stacktrace=1:halt_on_error=1:log_path=${SAN_LOG_DIR}/ubsan.log" | export UBSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/ubsan:print_stacktrace=1:halt_on_error=1:log_path=${SAN_LOG_DIR}/ubsan.log" | ||||
function print_sanitizers_log() { | function print_sanitizers_log() { | ||||
for log in "${SAN_LOG_DIR}"/*.log.* | for log in "${SAN_LOG_DIR}"/*.log.* | ||||
do | do | ||||
echo "*** Output of ${log} ***" | echo "*** Output of ${log} ***" | ||||
Show All 35 Lines |