Re: [lldb-dev] Leaks from static variables

2016-08-08 Thread Greg Clayton via lldb-dev
> On Aug 1, 2016, at 2:40 PM, Vedant Kumar via lldb-dev > 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 nec

Re: [lldb-dev] Leaks from static variables

2016-08-01 Thread Kate Stone via lldb-dev
Agreed that it’s a defect and should be addressed. It mostly a question of prioritization relative to other work, so knowing about a specific scenario where this is a pressing issue would be valuable. Kate Stone k8st...@apple.com  Xcode Low Level Tools > On Aug 1, 2

Re: [lldb-dev] Leaks from static variables

2016-08-01 Thread Zachary Turner via lldb-dev
If you're linking against liblldb you can't rely on the os cleaning up because you could unload liblldb before shutting down the process. Also it's good practice to do explicit cleanup since its not always just a simple matter of releasing resources, sometimes actual shutdown code needs to be inte

Re: [lldb-dev] Leaks from static variables

2016-08-01 Thread Kate Stone via lldb-dev
Greg Clayton will almost certainly want to weigh in here when he returns next week. Generally speaking, we’ve had a long tail of issues that only show up during teardown that we’re avoiding. Leaking resources that will be reclaimed by the OS when the process terminates is a non-issue. If ther

[lldb-dev] Leaks from static variables

2016-08-01 Thread Vedant Kumar via lldb-dev
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. Is there a bu