* [Bug runtime/17333] New: userspace probing by pid broken
@ 2014-09-01 14:24 mcermak at redhat dot com
2014-09-02 20:23 ` [Bug runtime/17333] " ajakop at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: mcermak at redhat dot com @ 2014-09-01 14:24 UTC (permalink / raw)
To: systemtap
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug runtime/17333] userspace probing by pid broken
2014-09-01 14:24 [Bug runtime/17333] New: userspace probing by pid broken mcermak at redhat dot com
@ 2014-09-02 20:23 ` ajakop at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: ajakop at redhat dot com @ 2014-09-02 20:23 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=17333
Abe Jakop <ajakop at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ajakop at redhat dot com
Resolution|--- |FIXED
--- Comment #1 from Abe Jakop <ajakop at redhat dot com> ---
fixed in commit: fb9ae721fc3387b1ecbd5e1697284bb0563d4588
--
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:[~2014-09-02 20:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01 14:24 [Bug runtime/17333] New: userspace probing by pid broken mcermak at redhat dot com
2014-09-02 20:23 ` [Bug runtime/17333] " ajakop 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).