dbcsr icon indicating copy to clipboard operation
dbcsr copied to clipboard

Include leak and thread sanitize checkers

Open alazzaro opened this issue 4 years ago • 1 comments

Include in GNU tests:

  • [x] -fsanitize=leak

  • [ ] -fsanitize=thread, check https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55561 and CP2K toolchain

  • [ ] Others?

alazzaro avatar Mar 06 '20 09:03 alazzaro

Leak sanitizer is now included (see https://github.com/cp2k/dbcsr/commit/833941727e5e9c677ac784e048d3a4671679f606 ). It requires to add a suppression file. Need to exclude OpenMPI because of some internal leaks. Added flags -fsanitize=undefined -fsanitize=address -fsanitize-recover=all only for Debug compilation (not in the CI) because of some false-positive warnings.

alazzaro avatar Apr 16 '20 22:04 alazzaro