public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug testsuite/16473] New: rlimit.exp: adjust for weak symbols
@ 2014-01-20 22:48 jlebon at redhat dot com
  2014-01-21  1:30 ` [Bug testsuite/16473] " lberk at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jlebon at redhat dot com @ 2014-01-20 22:48 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16473

            Bug ID: 16473
           Summary: rlimit.exp: adjust for weak symbols
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: systemtap at sourceware dot org
          Reporter: jlebon at redhat dot com

Since support for weak symbols was added (commits 91bb908 and 0035051, also see
bug 10208), the rlimit.exp test fails as follow:

Running ../../systemtap/testsuite/systemtap.base/rlimit.exp ...
FAIL: rlimit unlimited
FAIL: rlimit AS increase (as root)
FAIL: rlimit AS realistic
FAIL: rlimit CPU increase (as root)
FAIL: rlimit CPU realistic
FAIL: rlimit NPROC increase (as root)
FAIL: rlimit NPROC realistic
FAIL: rlimit STACK increase (as root)
FAIL: rlimit STACK realistic
FAIL: rlimit FSIZE increase (as root)
FAIL: rlimit FSIZE realistic

The reason is that the rlimit.stp script is defined as:

probe kernel.function("*ar*").call { println($$vars) }

And this pattern now matches many weak symbols (especially those suffixed with
e.g. '.part.xx'). These weak symbols don't seem to have any variables
accessible, and we thus get errors when trying to resolve $$vars. This is the
kind of error we get:

[vm build]$ stap -e 'probe process("/lib*/libc.so.*").function("chmod") {
println($$vars) }' -p4
semantic error: unresolved target-symbol expression: identifier '$$vars' at
<input>:1:62
        source: probe process("/lib*/libc.so.*").function("chmod") {
println($$vars) }
                                                                             ^

Pass 2: analysis failed.  [man error::pass2]
[vm build]$ 

If this is an issue with weak symbols not giving access to $$vars when it
should, then bug 10208 should be re-opened, and this one closed. If this is an
issue with rlimit.stp being too enthusiastic, then we should change the pattern
to make it more restrictive.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-14 20:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-20 22:48 [Bug testsuite/16473] New: rlimit.exp: adjust for weak symbols jlebon at redhat dot com
2014-01-21  1:30 ` [Bug testsuite/16473] " lberk at redhat dot com
2014-01-21 16:54 ` jlebon at redhat dot com
2014-01-21 17:02 ` jlebon at redhat dot com
2014-03-04 23:30 ` jlebon at redhat dot com
2014-03-04 23:48 ` jlebon at redhat dot com
2014-03-04 23:51 ` jlebon at redhat dot com
2014-03-05  0:15 ` jistone at redhat dot com
2014-03-14 20:46 ` jlebon 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).