elfutils/elfutils-0.137-dwarf-header-check-fix.diff
Stephan Kulow 175fa1556a Accepting request 40007 from home:jones_tony:branches:Base:System
Copy from home:jones_tony:branches:Base:System/elfutils via accept of submit request 40007 revision 5.
Request was accepted with message:
Reviewed ok - added you as maintainer now

OBS-URL: https://build.opensuse.org/request/show/40007
OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=11
2010-05-14 05:29:22 +00:00

30 lines
836 B
Diff

From: Takashi Iwai <tiwai@novell.com>
Subject: Fix for kernel debuginfo files
References: https://bugzilla.novell.com/show_bug.cgi?id=468247, comments 17-20
References: https://bugzilla.novell.com/show_bug.cgi?id=433182
Above BZ originally occured with Systemtap testsuite (stmt_rel.exp).
# stap -e 'probe kernel.statement("bio_put@fs/bio.c:*") {}'
semantic error: libdw failure (dwarf_getsrcfiles): invalid DWARF
...
---
libdw/dwarf_getsrclines.c | 2 ++
1 file changed, 2 insertions(+)
--- a/libdw/dwarf_getsrclines.c
+++ b/libdw/dwarf_getsrclines.c
@@ -337,8 +337,10 @@
/* Consistency check. */
if (unlikely (linep != header_start + header_length))
{
+#if 0
__libdw_seterrno (DWARF_E_INVALID_DWARF);
goto out;
+#endif
}
/* We are about to process the statement program. Initialize the