Merge bitcoin-core/secp256k1#1507: ci: Add workaround for ASLR bug in sanitizers
a5e8ab2484ci: Add sanitizer env variables to debug output (Tim Ruffing)84a93de4d2ci: Add workaround for ASLR bug in sanitizers (Tim Ruffing) Pull request description: Fixes #1506. This also adds the sanitizer env variables to our debug output as suggested in the same issue. ACKs for top commit: sipa: utACKa5e8ab2484jonasnick: ACKa5e8ab2484Tree-SHA512: 5162d14eeec01e088c600ed77e21c5ffd4dec23327b7e81b5ecac59b7c535cac97cd7b7b744c767766036dfc6d9152a9933eb326cf4065d56c46e2ee858da662
This commit is contained in:
@@ -36,6 +36,10 @@ runs:
|
|||||||
load: true
|
load: true
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
|
|
||||||
|
- # Workaround for https://github.com/google/sanitizers/issues/1614 .
|
||||||
|
run: sudo sysctl -w vm.mmap_rnd_bits=28
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- # Tell Docker to pass environment variables in `env` into the container.
|
- # Tell Docker to pass environment variables in `env` into the container.
|
||||||
run: >
|
run: >
|
||||||
docker run \
|
docker run \
|
||||||
|
|||||||
3
ci/ci.sh
3
ci/ci.sh
@@ -17,7 +17,8 @@ print_environment() {
|
|||||||
SECP256K1_TEST_ITERS BENCH SECP256K1_BENCH_ITERS CTIMETESTS\
|
SECP256K1_TEST_ITERS BENCH SECP256K1_BENCH_ITERS CTIMETESTS\
|
||||||
EXAMPLES \
|
EXAMPLES \
|
||||||
HOST WRAPPER_CMD \
|
HOST WRAPPER_CMD \
|
||||||
CC CFLAGS CPPFLAGS AR NM
|
CC CFLAGS CPPFLAGS AR NM \
|
||||||
|
UBSAN_OPTIONS ASAN_OPTIONS LSAN_OPTIONS
|
||||||
do
|
do
|
||||||
eval "isset=\${$var+x}"
|
eval "isset=\${$var+x}"
|
||||||
if [ -n "$isset" ]; then
|
if [ -n "$isset" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user