Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build.sh
Show All 33 Lines | |||||
../configure "${CONFIGURE_FLAGS[@]}" | ../configure "${CONFIGURE_FLAGS[@]}" | ||||
# Base directories for sanitizer related files | # Base directories for sanitizer related files | ||||
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="malloc_context_size=0: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() { | ||||
Show All 38 Lines |