Skip to content

Commit

Permalink
toolchain: Add LeakSanitizer suppression rule for bug in GCC 7.3
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/cp2k/code/trunk@18437 bac0169d-1eea-4375-b5f6-f89d2ced9994
  • Loading branch information
oschuett committed May 20, 2018
1 parent e0e77e3 commit a85b493
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cp2k/tools/toolchain/scripts/install_gcc.sh
Expand Up @@ -155,6 +155,9 @@ leak:Cblacs_gridmap
leak:blacs_gridmap_
# leaks related to PEXSI
leak:PPEXSIDFTDriver
# bug in gfortran 7.3, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85840
#TODO: upon removal, also remove fast_unwind_on_malloc=0 from LSAN_OPTIONS
leak:write_float_0
EOF
cat << EOF >> ${INSTALLDIR}/tsan.supp
# tsan bugs likely related to gcc
Expand All @@ -169,6 +172,6 @@ EOF

# need to also link to the .supp file in setup file
cat <<EOF >> ${SETUPFILE}
export LSAN_OPTIONS=suppressions=${INSTALLDIR}/lsan.supp
export LSAN_OPTIONS=suppressions=${INSTALLDIR}/lsan.supp:fast_unwind_on_malloc=0
export TSAN_OPTIONS=suppressions=${INSTALLDIR}/tsan.supp
EOF

0 comments on commit a85b493

Please sign in to comment.