This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

find_debuginfo_in_path()/validate() does not check that the file has debug info


Hi,

It seems that find_debuginfo_in_path() in find-debuginfo.c
can return a file that does not contain debug information.
It calls validate() to see if the build id is the same,
but does not check that the file actually has debug info or
not.

We're seeing this problem on Debian systems using systemtap
because:
- systemtap sets the search path to "+:.debug:/usr/lib/debug:build"
- The name of the files with debug info is the same as original
  file itself.  On redhat systems it seems ".debug" is appeneded.

So the first file it looks at is actually the same file as
the one we're trying to find the debug info for.  It has
the same build id, so it thinks it found it.

For more info about this, see:
http://bugs.debian.org/555549


Kurt
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]