[Lldb-commits] [lldb] [lldb] Fix stale Symbol pointer crash in statusline after 'target symbols add' (PR #188377)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 9 11:49:03 PDT 2026


https://github.com/clayborg commented:

@JDevlieghere are you ok with the current state here? This is a stop gap fix to stop things from crashing. 

The much harder but root cause fix is to have the symbol table be able to have multiple vectors of symbols and have APIs to add symbols by adding a complete vector. That way when an object file is parsing its symbol table (original executable), it will create its own vector and add the vector into the symbol table, and then when another object file (dSYM or newly added symbol file) can do the same thing and register another vector of symbols. This will ensure that no symbol pointers can go stale. This change will be much larger and more complex, but should be done at some point.

https://github.com/llvm/llvm-project/pull/188377


More information about the lldb-commits mailing list