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 dyninst/17360] New: systemtap in the dyninst mode kills the probed binary


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.


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