Movatterモバイル変換


[0]ホーム

URL:


Testing in Chromium

Running Chrome tests with AddressSanitizer (asan) and LeakSanitizer (lsan)

Running asan/lsan tests requires changing the build and setting a few environment variables.

Changes to args.gn (ie,out/Release/args.gn):

is_asan= trueis_lsan= true

Setting up environment variables and running the test:

$ export ASAN_OPTIONS="symbolize=1 external_symbolizer_path=./third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer detect_leaks=1 detect_odr_violation=0"$ export LSAN_OPTIONS=""$ out/Release/browser_tests

Stack traces (such as those emitted bybase::debug::StackTrace().Print()) may not be fully symbolized. The following snippet can symbolize them:

$ out/Release/browser_tests2>&1|./tools/valgrind/asan/asan_symbolize.py

[8]ページ先頭

©2009-2025 Movatter.jp