PR sanitizer/81081
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81081
There could be a situation when .debug_info has
valid file/line data but doesn't has a dwarf tag
(DW_TAG_subprogram) which represents function address
and name, in this case libbacktrace can not read
symbol info from .debug_info but can read this info from
syminfo table.
This doesn't look correct to me. Why do we bail out if function is not NULL? Shouldn't we use (!function && cdata->frames_symbolized > 0) istead? Also please include more context into the patch (git diff -U999999) or something like that.