Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MemorySanitizerRunning

Alexander Potapenko edited this pageAug 31, 2015 ·2 revisions

Follow instructions inMemorySanitizerUsingGit under "Building". They will get you an MSan-enabled Clang compiler in llvm/build/bin/clang.

Compile and link your code with -fmemory-sanitizer. Run the resulting binary.

To get symbolized reports, define an environment variable like this:

MSAN_SYMBOLIZER_PATH=/path/to/llvm/build/projects/compiler-rt/utils/llvm-symbolizer/llvm-symbolizer

Reports can also be post-symbolized by feeding them into the following:

LLVM_SYMBOLIZER_PATH=/path/to/llvm/build/projects/compiler-rt/utils/llvm-symbolizer/llvm-symbolizer /path/to/llvm/projects/compiler-rt/lib/asan/scripts/asan_symbolize.py

The method above will only work reliably if you build the whole program with -fmemory-sanitizer, including all the libraries it depends on, with the exception of libc.

Clone this wiki locally


[8]ページ先頭

©2009-2026 Movatter.jp