Hi everyone.

I would like to compile petsc with a few of the Google Sanitizers, in
particular ASAN.
I am using petsc-3.16.4, but I guess that is not relevant.


I have used for other projects


-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all
-fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
-fno-sanitize=null -fno-sanitize=alignment


as shown in
https://developers.redhat.com/blog/2021/05/05/memory-error-checking-in-c-and-c-comparing-sanitizers-and-valgrind#tldr.


I could not find the proper way to do that, and I do not even know if that
is possible.


Does anyone know about this?
What is the proper configure line?


Thanks a lot




-- 
Isaías

Reply via email to