We have helper functions in the code that signal errors by returning sentinel values (e.g., get_lnct_path() returns NULL in the event it cannot parse DWARF data). However, the callers of these helper functions are not always checking for error returns.
Rework the code to be more robust.