This is what is working for me:
- Make sure you have installed llvm (including llvm-symbolizer).
-
Export the following variable
export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer
(replace with your correct path to the llvm-symbolizer command).
-
Now run your executable (a.out for now) as
ASAN_OPTIONS=symbolize=1 a.out