http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59061
--- Comment #29 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> --- I've tried -fsanitize=leak and it works well, thanks! Concerning the speed, I'm still seeing about 20% slowdown (again, this is acceptable from my point of view). Under oprofile, the __sanitizer::internal_memset is near the top (see below), it this expected for -fsanitize=leak ? Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 90000 samples % linenr info image name symbol name ------------------------------------------------------------------------------- 1 8.1e-04 (no location information) cp2k.sopt __input_cp2k_poisson_MOD_create_multipole_section 74 0.0596 (no location information) libc-2.12.so register_printf_type 124031 99.9396 crtstuff.c:0 liblsan.so.0.0.0 __sanitizer::internal_memset(void*, int, unsigned long) 124031 9.6999 crtstuff.c:0 liblsan.so.0.0.0 __sanitizer::internal_memset(void*, int, unsigned long) 124031 46.7440 crtstuff.c:0 liblsan.so.0.0.0 __sanitizer::internal_memset(void*, int, unsigned long) 124031 46.7440 crtstuff.c:0 liblsan.so.0.0.0 __sanitizer::internal_memset(void*, int, unsigned long) [self] 17279 6.5120 (no location information) no-vmlinux /no-vmlinux -------------------------------------------------------------------------------