mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
0643014cb2
4773fa8207 Add llvm-symbolizer directory to PATH. Needed to get symbolized stack traces from the sanitizers. (practicalswift) 5c292dafcd Add UBSan suppressions needed to pass test suite (practicalswift) fced6b5086 Add UBSan options: print_stacktrace + halt_on_error (practicalswift) Pull request description: Fail the UBSan Travis build in case of newly introduced [UBSan (UndefinedBehaviorSanitizer)](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) errors. Prior to this commit new UBSan errors were printed but didn't fail the UBSan Travis build. Changes: * Travis: Add UBSan options: `print_stacktrace` + `halt_on_error` * Travis: Add UBSan suppressions needed to pass test suite * Travis: Add `llvm-symbolizer` directory to PATH. Needed to get symbolized stack traces from the sanitizers. `halt_on_error` should have been part of #14252 really :-) Tree-SHA512: 30e960659196873d4f636f3a61267b8b4441a0e8773e3f3ae4660a9341d028c363636f0cb919ef9d6662ceb484e3d58054adfb6dc76ff8a355a1c9f927c328d1
28 lines
733 B
Bash
Executable File
28 lines
733 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2018 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
|
|
# Add llvm-symbolizer directory to PATH. Needed to get symbolized stack traces from the sanitizers.
|
|
PATH=$PATH:/usr/lib/llvm-6.0/bin/
|
|
export PATH
|
|
|
|
BEGIN_FOLD () {
|
|
echo ""
|
|
CURRENT_FOLD_NAME=$1
|
|
echo "travis_fold:start:${CURRENT_FOLD_NAME}"
|
|
}
|
|
|
|
END_FOLD () {
|
|
RET=$?
|
|
echo "travis_fold:end:${CURRENT_FOLD_NAME}"
|
|
if [ $RET != 0 ]; then
|
|
echo "${CURRENT_FOLD_NAME} failed with status code ${RET}"
|
|
fi
|
|
}
|
|
|