You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to add memory sanitizer check to our CI in order to detect memory issues in PRs.
However, when i compile our code with memory sanitizer and run python tests, i get the following errors:
➜ test git:(drop-col) ✗ python3 test_main.py
==28988==ERROR: Interceptors are not working. This may be because AddressSanitizer is loaded too late (e.g. via dlopen). Please launch the executable with:
DYLD_INSERT_LIBRARIES=/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
"interceptors not installed" && 0
[1] 28988 abort python3 test_main.py
Reproduce:
Added those flags to cmake:
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
Then run: cmake debug
The text was updated successfully, but these errors were encountered:
Using fsanitize flag and building binary causes ASAN to fail when running python tests.
The binary can't be built with the fsanitize flag, it has to be run with LD_PRELOAD pointing to the gcc / clang libasan .so
This issue can be closed, address sanitizer with build debug has been added successfully in the ci pipeline. There are some error in python tests due to which the step fails (I've raised a ticket for this #1189 and @acquamarin will take a look at it.
We need to add memory sanitizer check to our CI in order to detect memory issues in PRs.
However, when i compile our code with memory sanitizer and run python tests, i get the following errors:
Reproduce:
Added those flags to cmake:
Then run:
cmake debug
The text was updated successfully, but these errors were encountered: