public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug dyninst/17360] New: systemtap in the dyninst mode kills the probed binary
@ 2014-09-08 12:12 mcermak at redhat dot com
  2014-09-08 13:09 ` [Bug dyninst/17360] " mcermak at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mcermak at redhat dot com @ 2014-09-08 12:12 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 17360
           Summary: systemtap in the dyninst mode kills the probed binary
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dyninst
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com

Systemtap in the dyninst mode kills the probed binary when the systemtap script
finishes:

=====
# cat test.c 
int main() {
        while(!sleep(1)) {}
        return(0);
}
# gcc -g test.c 
[root@pes-guest-66 2]# ./a.out &
[1] 2873
# stap -e 'probe begin{log("hey")} probe timer.ms(2000){exit()}' -x 2873
hey
# stap -e 'probe begin{log("hey")} probe timer.ms(2000){exit()}' -x 2873
hey
# stap -e 'probe begin{log("hey")} probe timer.ms(2000){exit()}' -x 2873
hey
# stap --runtime=dyninst -e 'probe begin{log("hey")} probe
timer.ms(2000){exit()}' -x 2873
hey
# stap --runtime=dyninst -e 'probe begin{log("hey")} probe
timer.ms(2000){exit()}' -x 2873
--FATAL-- #68: Dyninst was unable to attach to the specified process
--FATAL-- #68: BPatch.C[1040]: no process 2873 defined in procsByPid

stapdyn: ERROR: Couldn't attach to the target process
WARNING: /usr/bin/stapdyn exited with status: 1
Pass 5: run failed.  [man error::pass5]
[1]+  Killed                  ./a.out
# rpm -q systemtap dyninst
systemtap-2.6-1.mcermak.70f3005.el7.x86_64
dyninst-8.1.2-6.el7.x86_64
# 
=====

Similar behaviour on f20 using dyninst-8.1.2-4.fc20.x86_64. Please, review.

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

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

end of thread, other threads:[~2017-05-16 20:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-08 12:12 [Bug dyninst/17360] New: systemtap in the dyninst mode kills the probed binary mcermak at redhat dot com
2014-09-08 13:09 ` [Bug dyninst/17360] " mcermak at redhat dot com
2014-09-09 11:56 ` mcermak at redhat dot com
2014-09-09 17:27 ` jistone at redhat dot com
2014-09-09 19:09 ` jistone at redhat dot com
2017-05-16 20:13 ` scox 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).