On 02/04/2019 23:51, Jonathan Wakely wrote:
On Tue, 2 Apr 2019 at 23:33, Jonny Grant <jg@xxxxxxxx> wrote:
Hi!
clang has memory sanitizer,
https://github.com/google/sanitizers/wiki/MemorySanitizer
Just wondering if this is coming to GCC?
There was a thread about this just the other day:
https://gcc.gnu.org/ml/gcc-help/2019-03/msg00203.html
The answer is no, nobody's working on supporting it. Jakub does most
of the sanitizer work, and doesn't see much benefit compared to
valgrind, because msan requires the entire program and all libraries
it uses to be rebuilt with msan instrumentation. Valgrind works on
uninstrumented binaries.
Thank you for the link, it didn't show up on google search. I should
check the archives.
I guess the benefit is more accurate information if instrumented? But
yes, valgrind works fine too.
Jonny