Closed GoogleCodeExporter closed 9 years ago
Original comment by konstant...@gmail.com
on 16 Jun 2014 at 7:53
I thought this is how it works already:
% head t.cc lsan.supp
==> t.cc <==
int *x;
int main(int argc, char **argv) {
x = new int[10];
if (argc)
x = 0;
}
==> lsan.supp <==
leak:main
% clang++ -fsanitize=address t.cc &&
LSAN_OPTIONS=print_suppressions=true:suppressions=lsan.supp ./a.out
-----------------------------------------------------
Suppressions used:
count bytes template
1 40 main
-----------------------------------------------------
Original comment by konstant...@gmail.com
on 16 Jun 2014 at 7:59
The default behavior (print_suppressions=true) is to always print matched
suppressions. With print_suppressions=false they are never printed. The "print
matched suppressions only when unsuppressed leaks are present" behavior does
not exist, as far as I can tell from looking at the code. Is this not what you
observe?
Original comment by earth...@chromium.org
on 16 Jun 2014 at 9:30
Strange. I am seeing the "Supressions used" on our test servers, but not when
I'm running locally. Something weird must be happening with my test harness
then. Sorry about that.
Original comment by continua...@gmail.com
on 16 Jun 2014 at 7:18
Original comment by samso...@google.com
on 16 Jun 2014 at 7:28
Adding Project:AddressSanitizer as part of GitHub migration.
Original comment by ramosian.glider@gmail.com
on 30 Jul 2015 at 9:14
Original issue reported on code.google.com by
continua...@gmail.com
on 13 Jun 2014 at 9:38