Skip to content

Commit

Permalink
ci: work around leak sanitizer internal errors
Browse files Browse the repository at this point in the history
When using -fanitize=address in CI, we consistently get spurious test
failures due to some issue with the leak detection pass at the end of
execution:

 [==========] tests: Running 1 test(s).
 [ RUN      ] call_rtas_set_debug
 [       OK ] call_rtas_set_debug
 [==========] tests: 1 test(s) run.
 [  PASSED  ] 1 test(s).
 ==2492==LeakSanitizer has encountered a fatal error.
 ==2492==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
 ==2492==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
 FAIL tests/link_librtas (exit status: 1)

Perhaps some interaction with cmocka? It does not happen for me
locally using the same build-with command line.

Possibly related issue:
google/sanitizers#723

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
  • Loading branch information
nathanlynch committed Jul 26, 2023
1 parent 7928817 commit f361a5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
run: |
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
- name: Build and test
env: ASAN_OPTIONS="detect_leaks=0"
run: |
tools/build-with --distro=${{ matrix.image }} --cc=${{ matrix.cc }} --cflags='${{ matrix.cflags }}' --install libasan --install libubsan --install compiler-rt
Expand Down

0 comments on commit f361a5b

Please sign in to comment.