I have tried to configure CLion in order to use Google Sanitizers but without success.  My workstation is running Ubuntu 22.04.  My project is using CMake. 

I  added the following to my CMake file : set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -g -O0")

I added the following to my SETTINGS SANITIZER DIALOG:  detect_stack_use_after_return=true

However, after rebuilding my project and running it, nothing displays in my Sanitizer window at the bottom of CLion's IDE.  Does anyone have any ideas as to what the problem is?


Please sign in to leave a comment.