[Bug 239516] readelf -wf segfaults on most (all?) debug info files

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 24 23:14:55 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239516

--- Comment #2 from me at pacopascal.com ---
Created attachment 206867
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=206867&action=edit
Robustness patch

Adding logic similar to the "robustness patch" I provided may be worthwhile. If
another programmer using libdwarf makes a similar mistake, having it fail
gracefully may be preferable over a segfault. For example, running readelf
without the "proposed patch" would yield:


$ readelf -wf /usr/lib/debug/bin/cat.debug

The section .eh_frame contains:

Assertion failed: (ds->ds_data != NULL), function _dwarf_frame_section_init,
file /usr/src/contrib/elftoolchain/libdwarf/libdwarf_frame.c, line 465.
Abort trap
$

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list