Closed rozniak closed 5 months ago
Think this should be for checked builds only...
Working through some existing issues brought up by ASan
NTS: notepad save as dialog leaks, unsure why - investigate GTK source
NTS: libfontconfig
leaks so should be suppressed
Useful to test most programs with
LSAN_OPTIONS=suppressions=supp.txt <the program>
with supp.txt
contents
leak:libfontconfig.so
When looking for specific leaked mem, report addresses with
LSAN_OPTIONS=suppressions=supp.txt:report_objects=1 <the program>
Probably won't have any more time on this for the weekend, will have to continue during the week when I get home.
Few things outstanding:
regsvc
to use GApplication
so it can accept --quit
and be debugged better (need graceful exit for LSan to work)Think most everything else is sorted for now, though this is still a fair bit of work to undertake.
I think I'll save the upstream investigations for a separate issue... I have just migrated regsvc
to GApplication
and it seems all good (probably because the GVariant
leaks were fixed earlier).
Remaining issues for GTK/WNCK leaks can be looked at separately. They might just be 'one off' leaks that are intentional by those libraries.
After #306 , it would obviously be a good idea to enable asan for the builds to capture these sorts of issues early.
Will need to add the following to the CMake, probably the common CMakeLists
and add this for checked/debug builds