[lldb-dev] Leaks from static variables

Greg Clayton via lldb-dev lldb-dev at lists.llvm.org
Mon Aug 8 13:57:24 PDT 2016


> On Aug 1, 2016, at 2:40 PM, Vedant Kumar via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> 
> Hi lldb-dev,
> 
> It looks like the debugger initializes static variables in llvm (see:
> SystemInitializerFull::Initialize()), but, AFAICT, it never cleans them up.
> 
> Does this cause memory leaks? I'd assumed that it's necessary to call
> llvm_shutdown() somewhere to avoid this kind of leak.

We can add it. Since LLDB.framework is a shared library, we should add this to the SystemInitializerFull::Terminate() function and see how things go.

> Is there a buildbot I can check that tests an address-sanitized version of
> lldb?

I am not sure if we have one.


More information about the lldb-dev mailing list