From: "jistone at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug translator/13842] aggressive function merging gives confusing error messages
Date: Wed, 14 Mar 2012 01:32:00 -0000 [thread overview]
Message-ID: <bug-13842-6586-iwzeShDbW5@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-13842-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13842
Josh Stone <jistone at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|aggressive cast accessor |aggressive function merging
|function merging gives |gives confusing error
|confusing error messages |messages
--- Comment #2 from Josh Stone <jistone at redhat dot com> 2012-03-14 01:32:16 UTC ---
(In reply to comment #0)
> Also note that this can also happen with different structures where the field
> accessed is at the same offset in each.
Well, really this can happen with *any* functions that look the same to the
translator, and probably any probe bodies too. For example:
$ cat pr13842.stp
global v = $1
function foo() { return 1/0 }
function bar() { return 1/0 }
probe begin { v = v ? foo() : bar() }
$ stap -c true pr13842.stp 0
ERROR: division by 0 near operator '/' at pr13842.stp:3:26
WARNING: Number of errors: 1, skipped probes: 0
WARNING: /usr/bin/staprun exited with status: 1
Pass 5: run failed. Try again with another '--vp 00001' option.
$ stap -c true pr13842.stp 1
ERROR: division by 0 near operator '/' at pr13842.stp:3:26
WARNING: Number of errors: 1, skipped probes: 0
WARNING: /usr/bin/staprun exited with status: 1
Pass 5: run failed. Try again with another '--vp 00001' option.
Despite changing the argument, I got the error string pointing to the same
place. From this I can infer that foo() was collapsed into bar(), confirmed by
inspecting pass2 or pass3 output.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
prev parent reply other threads:[~2012-03-14 1:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-13 22:37 [Bug translator/13842] New: aggressive cast accessor " mjw at redhat dot com
2012-03-14 1:15 ` [Bug translator/13842] " jistone at redhat dot com
2012-03-14 1:32 ` jistone at redhat dot com [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=bug-13842-6586-iwzeShDbW5@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/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).