search for: __lsan_do_leak_check

Displaying 4 results from an estimated 4 matches for "__lsan_do_leak_check".

2013 Dec 25
2
[LLVMdev] [cfe-dev] lsan for LLVM bootstrap; leaks in TableGen
...nd there are also lots of leaks in TableGen. I think the problem with TableGen is that we call leak checking too late - after the global destructors, not before them. IIRC pointers to objects "leaked" in TableGen are stored in a set with static storage duration. If we're able to call __lsan_do_leak_check() right after main(), we will treat that objects as reachable. I considered adding a call to __lsan_do_leak_check into llvm_shutdown() function, but that looks wrong - for instance, llvm_shutdown() may be called when a dynamic library is unloaded. > > Would anyone be interested in fixing Ta...
2013 Dec 26
2
[LLVMdev] [cfe-dev] lsan for LLVM bootstrap; leaks in TableGen
...>> I think the problem with TableGen is that we call leak checking too >> late - after the global destructors, >> not before them. IIRC pointers to objects "leaked" in TableGen are >> stored in a set with static storage duration. >> If we're able to call __lsan_do_leak_check() right after main(), we >> will treat that objects as reachable. >> > > This is part of the problem. Indeed, there is code like this: > > void foo() { > static Pool ThePool; > ... > ThePool.Insert(new Stuff); > ... > } > > This static variable...
2013 Dec 25
3
[LLVMdev] lsan for LLVM bootstrap; leaks in TableGen
Hi, We are trying to enable LeakSanitizer on our asan/msan llvm bootstrap bot (http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/). In clang itself there are two leaks (http://llvm.org/bugs/show_bug.cgi?id=18318, http://llvm-reviews.chandlerc.com/D2472) and one lsan-hostile feature (http://llvm.org/bugs/show_bug.cgi?id=18320), all of which are easy to fix. And there are also
2015 Dec 15
2
Trouble supressing ASAN reported leaks
Hi, I'm currently trying to find and fix memory leaks (compiling with ``-fsanitize=address``) in the KLEE tool [1] an having found some leaks and I'm having trouble suppressing them. I'm trying to suppress them using the ``-fsanitize-blacklist=blacklist.txt`` option as documented at [2]. I'm using Clang 3.7 ( Arch Linux package 3.7.0-6). The sort of reported leaks I see are ```