[Lldb-commits] [lldb] [lldb] Fix stale Symbol pointer crash in statusline after 'target symbols add' (PR #188377)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 26 16:10:20 PDT 2026
bulbazord wrote:
This one is particularly scary because LLDB passes out `Symbol *` to many classes without any tracking or refcounting. It's not just `SymbolContextScope`. From a cursory search with grep, I see `LanguageRuntime`, `ValueObjectVTable`, and `ClangExpressionVariable`. The worst offender of all is `SBSymbol` which is backed by a `Symbol *` entirely. The Symbol * going away is a big no-no.
I think we need to rethink our Symbol management entirely if we're allowed to add to the symbol tables whenever we want.
https://github.com/llvm/llvm-project/pull/188377
More information about the lldb-commits
mailing list