Date: Sat, 24 Aug 2019 23:14:54 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 239516] readelf -wf segfaults on most (all?) debug info files Message-ID: <bug-239516-227-qGYtARON0N@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-239516-227@https.bugs.freebsd.org/bugzilla/> References: <bug-239516-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239516 --- Comment #2 from me@pacopascal.com --- Created attachment 206867 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D206867&action= =3Dedit 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 !=3D NULL), function _dwarf_frame_section_in= it, file /usr/src/contrib/elftoolchain/libdwarf/libdwarf_frame.c, line 465. Abort trap $ --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239516-227-qGYtARON0N>