public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mjw@redhat.com>
To: wenji.huang@oracle.com
Cc: SystemTAP <systemtap@sources.redhat.com>
Subject: Re: Test failure of cxxclass
Date: Mon, 14 Dec 2009 07:30:00 -0000	[thread overview]
Message-ID: <1260775831.2276.7.camel@hermans.wildebeest.org> (raw)
In-Reply-To: <4B25A83A.70304@oracle.com>

Hi Wenji,

On Mon, 2009-12-14 at 10:51 +0800, Wenji Huang wrote:
> I got failed when I ran tests on FC11 32-bits.
> 
> $ stap ./systemtap.base/cxxclass.stp cxxclass.exe -c ./cxxclass.exe
> main_enter
> call: 64
> cons call: 64
> cons call: 64
> meth call: 64 24
> meth call: 64 24
> dest call: 42
> dest call: 42
> call2: 24
> main_exit
> 
> Seems there is double call on process.mark.

Yes, I am seeing the same. Wanted to file a bug report, but bugzilla was
down this weekend. Will do so now.

The issue seems to be that some of the static probe points get
duplicated in the code. This shouldn't be a problem, and the .probes
section does contain both places with different addresses. You can also
see (with enough -vvvvv) that stap finds both locations while resolving
the mark("cons") probe. But, only the first is registered twice, as can
be seen in the generated code:

  { .address=(unsigned
long)0x8048476ULL, .pp="process(\"/home/mark/src/systemtap/testsuite/cxxclass.exe\").statement(134513782)", .ph=&probe_1895, },
  { .address=(unsigned
long)0x8048476ULL, .pp="process(\"/home/mark/src/systemtap/testsuite/cxxclass.exe\").statement(134513782)", .ph=&probe_1895, },

This means the first call of the constructor is triggered as probe twice
(as is the method, and destructor call) but the second call isn't
triggered as probe at all.

It looks like this is a problem in how sdt_query::convert_location() is
called (it seems to do duplication detection based on probe name, but
not address. I haven't looked very deeply into it yet though.

Cheers,

Mark

      reply	other threads:[~2009-12-14  7:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14  2:55 Wenji Huang
2009-12-14  7:30 ` Mark Wielaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1260775831.2276.7.camel@hermans.wildebeest.org \
    --to=mjw@redhat.com \
    --cc=systemtap@sources.redhat.com \
    --cc=wenji.huang@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).