[Lldb-commits] [lldb] [lldb] Guard against a null module in Block::GetRangeContainingAddress (PR #205691)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 25 06:19:04 PDT 2026
labath wrote:
> LLDB represents such a function with a section-less, invalid address whose GetModule() is empty, so the dereference crashes.
I can see how that could happen, but I'm not sure if it's desirable. IIRC, creating these functions produces some undesirable artifacts, and we actually do a fair amount of work to validate that we don't create lldb_private::Function objects for dead-stripped code. I think it would be illuminating to see how this function manages to get past the checks in SymbolFileDWARF::ParseFunction.
https://github.com/llvm/llvm-project/pull/205691
More information about the lldb-commits
mailing list