1. Redirect report to specific file:
export ASAN_OPTIONS="log_path=asan_output.log"
./executable
All options that can be set can be found here
1. Redirect report to specific file:
export ASAN_OPTIONS="log_path=asan_output.log"
./executable
All options that can be set can be found here
Build project with : -fsanitize=address -fsanitize-recover=address
Run the excutable with this enviroment variable: ASAN_OPTIONS=halt_on_error=0
. Source: https://github.com/google/sanitizers/wiki/AddressSanitizer.
Ex:
ASAN_OPTIONS=halt_on_error=0 ./executable
When the address sanitizer will find a problem, it will not abort the execution of the exe as it ussualy does.