When compiling with -fsanitize=memory
I get WARNING: Trying to symbolize code, but external symbolizer is not initialized!
when running the program. How do I initialize the external symbolizer?
I solved my own problem using MSAN_SYMBOLIZER_PATH=$(which llvm-symbolizer-3.4) ./a.out
. The problem is that Ubuntu postfixes the version number but the binary doesn't know that. Of course you need to use MSAN
instead of ASAN
when using the memory sanitizer.