This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/4886] New: stap should validate debuginfo files
- From: "mmlnx at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 2 Aug 2007 20:11:40 -0000
- Subject: [Bug translator/4886] New: stap should validate debuginfo files
- Reply-to: sourceware-bugzilla at sourceware dot org
As far as I can tell, stap relies solely on file/directory names to determine
which debuginfo files to use. It does not validate that, upon finding a match,
the debuginfo file is actually valid for the running kernel. I confirmed this
by renaming an invalid vmlinux with the name stap expected to find for the
running kernel, then running a script. I saw no errors up through compiling the
module, but once the module loaded the system crashed.
Stap should do some level of validation of the debuginfo files it uses, perhaps
by comparing the dwarf addresses to the addresses in /proc/kallsyms. If they
don't match something's wrong. It may be sufficient to check a small set of
well-known symbols rather than validating every address referenced in the script.
--
Summary: stap should validate debuginfo files
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mmlnx at us dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4886
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.