[LLLDB] Adding additional check LibCppStdFunctionCallableInfo based on crash reports

We have seen several crashes in LibCppStdFunctionCallableInfo(...) but we don't have a
reproducer. The last crash pointed to last call to line_entry_helper(...) and symbol
was a nullptr. So adding a check for this case.
This commit is contained in:
Shafik Yaghmour 2021-04-14 16:25:23 -07:00
parent 6890f302f5
commit ebee457131
1 changed files with 3 additions and 0 deletions

View File

@ -322,6 +322,9 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo(
}
}
if (symbol == nullptr)
return optional_info;
// Case 1 or 3
if (scl.GetSize() >= 1) {
optional_info = line_entry_helper(target, scl[0], symbol,