Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to configure Address Sanitizer in qt on windows platform



  • I have tried adding set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address") option in cmake file in Linux and windows.

    1. On Linux I am able to see the report for memory Leak.
    2. On windows not able to see the report for memory leak.

    Below mentioned compilers are used
    1.Windows - Clang
    2.Linux - gcc

    Please guide me the steps to follow on to detect address sanitizer on windows platform.


Log in to reply