This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap 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]

Re: How to debug what I am doing wrong?


On Thu, Jul 17, 2008 at 03:23:10PM -0700, Roland McGrath wrote:
> It does.  It now seems likely the bug is in the libdwfl code for searching
> for debuginfo files and/or its code for validating them.  (In this case, it
> should be validating that the build ID matches.)

Hmm.  I just tried to do a strace -eopen on eu-strip and on stap, and
it looks like it's not trying to search for the file in /usr/lib/debug
at all.  I'm using the version of elfutils that shipped with Ubuntu
Hardy (since I was assured it wasn't necessary to build your own
version of elfutils).  I seem to be using version 0.131-3 of elfutils
from Ubuntu; could that be the problem?

I can work around the problem in stap (but not eu-strip) by setting
the SYSTEMP_DEBUGINFO_PATH environment variable.

export SYSTEMTAP_DEBUGINFO_PATH=/usr/local/lib/debug/lib/modules/2.6.26-03033-g97438cf

Unfortuntaely, I then get a different error message:

% stap ext4-check-desk.stp
semantic error: failed to retrieve location attribute for local 'sb' (dieoffset: 0x9cf22): identifier '$sb' at ext4-check-desk.stp:3:47
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.

Sb is a parameter passed into ext4_check_descriptors, so don't know
what it's issuing *this* complaint:

static int ext4_check_descriptors(struct super_block *sb)
{
	struct ext4_sb_info *sbi = EXT4_SB(sb);
	...


						- Ted


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