public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/4886] New: stap should validate debuginfo files
@ 2007-08-02 20:47 mmlnx at us dot ibm dot com
  2007-08-02 21:07 ` [Bug translator/4886] " fche at redhat dot com
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: mmlnx at us dot ibm dot com @ 2007-08-02 20:47 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2008-10-11  2:48 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-02 20:47 [Bug translator/4886] New: stap should validate debuginfo files mmlnx at us dot ibm dot com
2007-08-02 21:07 ` [Bug translator/4886] " fche at redhat dot com
2007-08-09 21:07 ` fche at redhat dot com
2007-08-16  1:43 ` fche at redhat dot com
2007-08-19 20:29 ` mmlnx at us dot ibm dot com
2007-08-19 20:47 ` roland at gnu dot org
2007-09-04 15:23 ` fche at redhat dot com
2007-09-19 11:25 ` wenji dot huang at oracle dot com
2007-09-19 13:04 ` wenji dot huang at oracle dot com
2007-09-19 13:56 ` fche at redhat dot com
2007-09-20 10:16 ` wenji dot huang at oracle dot com
2007-09-20 19:40 ` fche at redhat dot com
2007-09-21 13:33 ` wenji dot huang at oracle dot com
2007-10-16 18:23 ` fche at redhat dot com
2008-05-20 20:33 ` fche at redhat dot com
2008-05-20 20:41 ` [Bug translator/4886] stap should validate debuginfo files with build-id fche at redhat dot com
2008-10-11  2:48 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).