* [Bug translator/14310] New: better error messages on recursive alias expansion
@ 2012-06-29 14:02 smakarov at redhat dot com
2012-06-29 14:28 ` [Bug translator/14310] " smakarov at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: smakarov at redhat dot com @ 2012-06-29 14:02 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=14310
Bug #: 14310
Summary: better error messages on recursive alias expansion
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap@sourceware.org
ReportedBy: smakarov@redhat.com
Classification: Unclassified
When an infinite recursive alias expansion goes through an alias suffix, it is
caught correctly just as for a regular alias expansion. However, the error
messages that result can be a bit unfocused:
[root:/opt/codebase/systemtap]:stap$ cat testsuite/semko/alias_suffixes06.stp
#! stap -p2
# Test detection of indefinite recursion when suffixes are involved.
# a.b.c --> q.c --> r.c.c -> a.b.c.c -> ... -> a.b.c.c.c.c.c....
probe r = a.b { }
probe q.c = r.c.c { }
probe a.b = q { }
probe a.b.c { print("what?") }
[root:/opt/codebase/systemtap]:stap$ stap testsuite/semko/alias_suffixes06.stp
semantic error: while resolving probe point: identifier 'r' at
testsuite/semko/alias_suffixes06.stp:7:13
source: probe q.c = r.c.c { }
^
semantic error: Recursive loop in alias expansion of q.c.c at
testsuite/semko/alias_suffixes06.stp:8:13: identifier 'c' at :7:15
source: probe q.c = r.c.c { }
^
semantic error: while resolving probe point: identifier 'a' at :9:7
source: probe a.b.c { print("what?") }
^
semantic error: no match: identifier 'c' at :9:11
source: probe a.b.c { print("what?") }
^
Pass 2: analysis failed. Try again with another '--vp 01' option.
Here, the probe point reported for the "recursive loop" error is perhaps a bit
too deep down in the alias expansion, and the "no match" error is completely
unnecessary. The error handling for this case needs to be tweaked to produce
more informative output.
The ordinary recursive expansion error currently also has the same problem:
[root:/opt/codebase/systemtap]:stap$ stap -e 'probe a = b { } probe b = a { }
probe b { println("foo") }'
semantic error: while resolving probe point: identifier 'a' at <input>:1:27
source: probe a = b { } probe b = a { } probe b { println("foo") }
^
semantic error: Recursive loop in alias expansion of a at <input>:1:27
semantic error: while resolving probe point: identifier 'b' at :1:11
source: probe a = b { } probe b = a { } probe b { println("foo") }
^
semantic error: no match
semantic error: while resolving probe point: identifier 'b' at :1:39
source: probe a = b { } probe b = a { } probe b { println("foo") }
^
Pass 2: analysis failed. Try again with another '--vp 01' option.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug translator/14310] better error messages on recursive alias expansion
2012-06-29 14:02 [Bug translator/14310] New: better error messages on recursive alias expansion smakarov at redhat dot com
@ 2012-06-29 14:28 ` smakarov at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: smakarov at redhat dot com @ 2012-06-29 14:28 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=14310
Serguei Makarov <smakarov at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jistone at redhat dot com,
| |smakarov at redhat dot com
AssignedTo|systemtap at sourceware dot |smakarov at redhat dot com
|org |
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-29 14:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-29 14:02 [Bug translator/14310] New: better error messages on recursive alias expansion smakarov at redhat dot com
2012-06-29 14:28 ` [Bug translator/14310] " smakarov 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).