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]

[Bug translator/16166] New: stap -vvv causes SIGSEGV when using @perf operator


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

            Bug ID: 16166
           Summary: stap -vvv causes SIGSEGV when using @perf operator
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: jlebon at redhat dot com

First compile towers.c:

gcc -g testsuite/systemtap.base/towers.c -o testsuite/systemtap.base/towers.x

Then run the following:

stap -vvv -e '
global x

probe
perf.hw.cpu_cycles.process("testsuite/systemtap.base/towers.x").counter("a") {} 

probe process("testsuite/systemtap.base/towers.x").function("main")
{
   # wrong type
   x = "b" . @perf("a")
}
'

And you get (skipping to the bottom of the output):

Eliding side-effect-free empty block operator '{' at
/home/yyz/jlebon/codebase/systemtap/install/share/systemtap/tapset/linux/perf.stp:11:60
Eliding side-effect-free empty block operator '{' at <input>:4:84
Eliding side-effect-free empty block operator '{' at
/home/yyz/jlebon/codebase/systemtap/install/share/systemtap/tapset/linux/perf.stp:11:60
Eliding side-effect-free singleton block identifier 'perf' at <input>:4:7
Eliding side-effect-free empty block Segmentation fault (core dumped)

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


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