I am trying to debug a memory error detected by clang
with asan
, but missed by valgrind
. But I cannot get my clang
built bina
Sometimes everything (path to the symboliser, environment variable etc) will be correct, but still you won't get file:line
formatted output.
So run
dsymutil path/to/your.app/Contents/MacOS/binary
and then run the app and you'll get nicely formatted output. This is also mentioned in the docs.
Note that on macOS you may need to run dsymutil on your binary to have the file:line info in the AddressSanitizer reports.
http://clang.llvm.org/docs/AddressSanitizer.html#symbolizing-the-reports