After VS2022 version 17.12.0 update Address Sanitizer no longer works for my C++ project

Andrei Hanganu 5 Reputation points
2024-11-13T12:56:41.03+00:00

I've just updated visual studio to the version in the topic and the project which worked ok 5 minutes ago with Asan on (/fsanitize=address) now throws this error when starting the debugger:

The procedure entry point __sanitizer_ignore_free_hook____dll could not be located in the dynamic link library [...my exe...]

What's up with this?

Developer technologies | C++
Developer technologies | Visual Studio | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Andrei Hanganu 5 Reputation points
    2025-04-05T10:16:44.4533333+00:00

    Took me three versions of testing to figure this out.

    clang_rt.asan_dynamic-x86_64.dll

    clang_rt.asan_dbg_dynamic-x86_64.dll

    Had these two libraries stored from an older version in the project and did not know. They were getting loaded instead of the new ones hence the error.

    1 person found this answer helpful.

  2. 寿猛 韦 0 Reputation points
    2025-02-13T04:01:58.5866667+00:00

    Version 17.12.5 continues to exhibit the same issues. The last available stable version is 17.11.6. Additionally, any program compiled with Address Sanitizer enabled following version 17.12.0 experiences a significant decrease in performance.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.