This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Fix crash when a type has no definition
AbandonedPublic

Authored by siggi-alpheus on Apr 8 2022, 11:13 AM.

Details

Summary

See issue 54761.
It looks like Google Chrome's symbols contain some member functions whose this pointer type is missing, which causes a nullptr access and a crash. This patch makes lldb tolerant of this problem by avoiding the nullptr access.

Diff Detail

Event Timeline

siggi-alpheus created this revision.Apr 8 2022, 11:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2022, 11:13 AM
siggi-alpheus requested review of this revision.Apr 8 2022, 11:13 AM
siggi-alpheus abandoned this revision.May 2 2022, 8:43 AM

This is not a good fix for the crash. A better fix is in https://reviews.llvm.org/D124370.