cpp-best-practices / gui_starter_template

A template CMake project to get you started with C++ and tooling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change LSAN variables

parequena opened this issue · comments

commented

Hello, I'm trying to do some stuff with this template as base, and I have some leaks, but I don't know how to set the variables on this project.

==86737==LeakSanitizer has encountered a fatal error.
==86737==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==86737==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)

My knowledge on CMake is not so big, and this template is not so easy to use.

on bash:
export LSAN_OPTIONS='verbosity=1:log_threads=1'