Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

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