Skip to content

Commit 8dc82da

Browse files
committed
Fix reported memory errors in asan environment by using the debugging versions of python
1 parent bcaaa9b commit 8dc82da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ commands =
2323
coverage xml -i
2424

2525
[testenv:asan]
26+
# Use debug python as default python gives address sanitization errors.
27+
basepython=python3d
2628
setenv=
2729
PYTHONDEVMODE=1
2830
PYTHONMALLOC=malloc
29-
CFLAGS=-lasan -fsanitize=address -fno-omit-frame-pointer
31+
CFLAGS=-lasan -fsanitize=address -fno-omit-frame-pointer -Og -g
3032
allowlist_externals=bash
3133
commands=
3234
bash -c 'export LD_PRELOAD=$(gcc -print-file-name=libasan.so) && printenv LD_PRELOAD && python -c "from isal import isal_zlib" && pytest tests'

0 commit comments

Comments
 (0)