Skip to content

Commit 621c6a3

Browse files
committed
Preload libasan
For some reason we had begun not being able to load the extension. The message when loading the extension was: ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD. This loads libasan now. We have to disable leak checking at the same time as otherwise we see leak errors from outside our code.
1 parent db19971 commit 621c6a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/address-sanitizer.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Address Sanitizer
1010
runs-on: ubuntu-latest
1111
env:
12-
ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:detect_invalid_pointer_pairs=2
12+
ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:detect_invalid_pointer_pairs=2:detect_leaks=0
1313
CC: clang
1414
CFLAGS: -fsanitize=address -Wall -Wextra -Wpedantic -Wformat=2 -Walloca -Wvla -Wimplicit-fallthrough -Wcast-qual -Wconversion -Wshadow -Wundef -Wstrict-prototypes -Wswitch-enum -fstack-protector -D_FORTIFY_SOURCE=2 -Werror
1515
LDFLAGS: -fsanitize=address
@@ -34,3 +34,5 @@ jobs:
3434
3535
- name: Test with tox
3636
run: MM_FORCE_EXT_TESTS=1 tox
37+
env:
38+
LD_PRELOAD: libasan.so.6

0 commit comments

Comments
 (0)