Skip to content

Commit

Permalink
Sanitizers: add ASAN options to avoid false errors
Browse files Browse the repository at this point in the history
Set `ASAN_OPTIONS=intercept_tls_get_addr=0` to avoid problems with
sanitizers running in containers.

see: google/sanitizers#1322
  • Loading branch information
pstorz authored and sebsura committed Mar 28, 2023
1 parent e15b3f7 commit 8f6de5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devtools/build-and-test-with-sanitize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ cmake \
-Dpostgresql=yes
cmake --build cmake-build

# avoid problems in containers with sanitizers
# see https://github.com/google/sanitizers/issues/1322
export ASAN_OPTIONS=intercept_tls_get_addr=0

cd cmake-build
export REGRESS_DEBUG=1
ctest \
Expand Down

0 comments on commit 8f6de5e

Please sign in to comment.