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 runtime/17333] New: userspace probing by pid broken


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

            Bug ID: 17333
           Summary: userspace probing by pid broken
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com

Hi, it looks like userspace probing by pid si broken now. Let's have following
reproducer:

=======
# cat testcase.sh 
#!/bin/bash

cat > test.c <<-EOF
void nop() {}

int main() {
        while(1) {
                sleep(1);
                nop();
        }
}
EOF

set -x
stap --version
gcc -g test.c
./a.out &
__pid=$!

echo "testcase 1:"
stap -e "probe process(\"./a.out\").function(\"nop\") { log(\"hit\"); exit();
}"
echo "testcase 2:"
stap -e "probe process(\"*\").function(\"nop\") { log(\"hit\"); exit(); }" -x
$__pid
echo "testcase 3:"
stap -e "probe process($__pid).function(\"nop\") { log(\"hit\"); exit(); }"

kill $__pid
rm test.c a.out
set +x
=======


On my f20 with stap based on e6e7c33 all three testcases pass. But after
upgrading to a799c31, the third testcase fails:


=======
+ echo 'testcase 3:'
testcase 3:
+ stap -e 'probe process(31348).function("nop") { log("hit"); exit(); }'
semantic error: while resolving probe point: identifier 'process' at
<input>:1:7
        source: probe process(31348).function("nop") { log("hit"); exit(); }
                      ^

semantic error: 

Pass 2: analysis failed.  [man error::pass2]
=======

-- 
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]