[PATCH] D149025: [sanitizer][asan][win] Only unmap unneeded shadow memory on x86_64

Alvin Wong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 01:40:55 PDT 2023


alvinhochun added a comment.

In D149025#4290881 <https://reviews.llvm.org/D149025#4290881>, @mstorsjo wrote:

> However for MSVC, the `GetHeapSizeTest` test still fails in `check-asan`

I think I know what's going on here -- if you compiled the tests before applying the patch, then applied the patch and reran `ninja check-asan`, the tests don't actually get relinked.The static asan libs are linked in by `-fsanitize=address`, so CMake does not have any idea about the dependency on the static asan libs. You have to manually trigger a change, like touch one of the test source, to get the tests to be relinked using the rebuilt static asan.

On my MSVC test setup these tests do pass with this change. (Admittedly I also was confused when reverting the change didn't cause the tests to fail at first.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149025/new/

https://reviews.llvm.org/D149025



More information about the llvm-commits mailing list