Re: [lldb-dev] Memory corruption due to Symtab::AddSymbol growth

2016-05-20 Thread Greg Clayton via lldb-dev
> On May 20, 2016, at 3:15 PM, Eugene Birukov via lldb-dev > wrote: > > Hi, > > I am looking through LLDB code... Another dangerous operation is > Symtab::Finalize() that just swaps the array. This is especially bad since it > will defeat something like quick-and-dirty hack of preallocating

Re: [lldb-dev] Memory corruption due to Symtab::AddSymbol growth

2016-05-20 Thread Eugene Birukov via lldb-dev
Hi, I am looking through LLDB code... Another dangerous operation is Symtab::Finalize() that just swaps the array. This is especially bad since it will defeat something like quick-and-dirty hack of preallocating a huge vector upfront. My first impulse to fix that (maybe just temporary to get me

[lldb-dev] Memory corruption due to Symtab::AddSymbol growth

2016-05-20 Thread Eugene Birukov via lldb-dev
Hi, I am running into memory corruption in LLDB 3.8 release candidate on Linux Ubuntu 15.10. I am trying to access stack frame and the symbol on this frame is corrupted. Here is what I figured out: "StackFrame" has field "m_sc" of type "SymbolContext""SymbolContext" has field "symbol" which is "