public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug dyninst/16795] New: utrace_p5.exp leaves stapdyn processes running
@ 2014-04-01 23:00 jlebon at redhat dot com
  2014-04-01 23:01 ` [Bug dyninst/16795] " jlebon at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jlebon at redhat dot com @ 2014-04-01 23:00 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 16795
           Summary: utrace_p5.exp leaves stapdyn processes running
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dyninst
          Assignee: systemtap at sourceware dot org
          Reporter: jlebon at redhat dot com

During some runs of utrace_p5.exp, this failure can occur:

FAIL: UTRACE_P5_06_cmd_dyninst shutdown (timeout)

stap:[vm systemtap ((daa4b33...))]$ ps aux | grep utrace
root     31609  0.0  5.1 328188 105456 ?       Sl   18:35   0:00
/home/vm/codebase/systemtap/install/bin/stapdyn -c
/home/vm/codebase/systemtap/build/testsuite/utrace_p5_multi_31233
/tmp/stap67S2bK/stap_682284b48a759123a41de08383dfcf7f_1449.so
root     31613  0.0  0.0  46120   776 ?        tl   18:35   0:00
/home/vm/codebase/systemtap/build/testsuite/utrace_p5_multi_31233
root     32053  0.0  5.0 328188 103408 ?       Sl   18:36   0:01
/home/vm/codebase/systemtap/install/bin/stapdyn -c
/home/vm/codebase/systemtap/build/testsuite/utrace_p5_multi_31677
/tmp/stapflya1s/stap_e21127b193a834855e49e99e76eaf0a1_1449.so
root     32057  0.0  0.0  46120   772 ?        tl   18:36   0:00
/home/vm/codebase/systemtap/build/testsuite/utrace_p5_multi_31677
vm       32717  0.0  0.0 112632   936 pts/1    S+   18:56   0:00 grep
--color=auto utrace
stap:[vm systemtap ((daa4b33...))]$ sudo gdb -p 31609
GNU gdb (GDB) Fedora 7.6.1-46.fc19
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 31609
Reading symbols from /home/vm/codebase/systemtap/install/bin/stapdyn...done.
...
Reading symbols from /lib64/libselinux.so.1...Reading symbols from
/usr/lib/debug/usr/lib64/libselinux.so.1.debug...done.
Loaded symbols for /lib64/libthread_db.so
0x0000003accceb8bf in __GI_ppoll (fds=fds@entry=0x7fff81a23840,
nfds=nfds@entry=1,
    timeout=<optimized out>, timeout@entry=0x7fff81a23850,
sigmask=sigmask@entry=0x7fff81a23860)
    at ../sysdeps/unix/sysv/linux/ppoll.c:56
56            result = INLINE_SYSCALL (ppoll, 5, fds, nfds, timeout, sigmask,
Missing separate debuginfos, use: debuginfo-install dyninst-8.1.2-1.fc19.x86_64
elfutils-libelf-0.156-5.fc19.x86_64 libdwarf-20130207-1.fc19.x86_64
pcre-8.32-8.fc19.x86_64
(gdb) bt
#0  0x0000003accceb8bf in __GI_ppoll (fds=fds@entry=0x7fff81a23840,
nfds=nfds@entry=1,
    timeout=<optimized out>, timeout@entry=0x7fff81a23850,
sigmask=sigmask@entry=0x7fff81a23860)
    at ../sysdeps/unix/sysv/linux/ppoll.c:56
#1  0x000000000040db72 in ppoll (__ss=0x7fff81a23860, __timeout=0x7fff81a23850,
__nfds=1,
    __fds=0x7fff81a23840) at /usr/include/bits/poll2.h:77
#2  mutator::run (this=0x25bfe80) at ../../systemtap/stapdyn/mutator.cxx:586
#3  0x00000000004075b7 in main (argc=<optimized out>, argv=<optimized out>)
    at ../../systemtap/stapdyn/stapdyn.cxx:157
(gdb) thread apply all backtrace

Thread 5 (Thread 0x7faf84a94700 (LWP 31610)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007faf85c7a03d in CondVar::wait() () from
/usr/lib64/dyninst/libpcontrol.so.8.1
#2  0x00007faf85cc01c8 in MTManager::evhandler_main() () from
/usr/lib64/dyninst/libpcontrol.so.8.1
#3  0x00007faf85c79c7c in thread_init(void*) () from
/usr/lib64/dyninst/libpcontrol.so.8.1
#4  0x0000003acd807c53 in start_thread (arg=0x7faf84a94700) at
pthread_create.c:308
#5  0x0000003acccf5dbd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7faf7ffff700 (LWP 31611)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007faf85c7a03d in CondVar::wait() () from
/usr/lib64/dyninst/libpcontrol.so.8.1
#2  0x00007faf85c63e18 in LinuxPtrace::main() () from
/usr/lib64/dyninst/libpcontrol.so.8.1
#3  0x00007faf85c79c7c in thread_init(void*) () from
/usr/lib64/dyninst/libpcontrol.so.8.1
#4  0x0000003acd807c53 in start_thread (arg=0x7faf7ffff700) at
pthread_create.c:308
#5  0x0000003acccf5dbd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7faf7f5f6700 (LWP 31612)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007faf85c7a03d in CondVar::wait() () from
/usr/lib64/dyninst/libpcontrol.so.8.1
#2  0x00007faf85c85a5f in
Dyninst::ProcControlAPI::GeneratorMT::processWait(bool) ()
   from /usr/lib64/dyninst/libpcontrol.so.8.1
#3  0x00007faf85c8624e in
Dyninst::ProcControlAPI::Generator::getAndQueueEventInt(bool) ()
   from /usr/lib64/dyninst/libpcontrol.so.8.1
#4  0x00007faf85c640d2 in Dyninst::ProcControlAPI::GeneratorMT::main() ()
   from /usr/lib64/dyninst/libpcontrol.so.8.1
#5  0x00007faf85c868d5 in Dyninst::ProcControlAPI::GeneratorMT::start() ()
   from /usr/lib64/dyninst/libpcontrol.so.8.1
#6  0x00007faf85c79c7c in thread_init(void*) () from
/usr/lib64/dyninst/libpcontrol.so.8.1
#7  0x0000003acd807c53 in start_thread (arg=0x7faf7f5f6700) at
pthread_create.c:308
#8  0x0000003acccf5dbd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7faf7e4dc700 (LWP 31614)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007faf8408c96b in _stp_dyninst_transport_thread_func ()
   from /tmp/stap67S2bK/stap_682284b48a759123a41de08383dfcf7f_1449.so
#2  0x0000003acd807c53 in start_thread (arg=0x7faf7e4dc700) at
pthread_create.c:308
#3  0x0000003acccf5dbd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7faf84a96840 (LWP 31609)):
#0  0x0000003accceb8bf in __GI_ppoll (fds=fds@entry=0x7fff81a23840,
nfds=nfds@entry=1,
    timeout=<optimized out>, timeout@entry=0x7fff81a23850,
sigmask=sigmask@entry=0x7fff81a23860)
    at ../sysdeps/unix/sysv/linux/ppoll.c:56
#1  0x000000000040db72 in ppoll (__ss=0x7fff81a23860, __timeout=0x7fff81a23850,
__nfds=1,
    __fds=0x7fff81a23840) at /usr/include/bits/poll2.h:77
#2  mutator::run (this=0x25bfe80) at ../../systemtap/stapdyn/mutator.cxx:586
#3  0x00000000004075b7 in main (argc=<optimized out>, argv=<optimized out>)
    at ../../systemtap/stapdyn/stapdyn.cxx:157
(gdb)

Also can't seem to kill the target command:

stap:[vm systemtap ((daa4b33...))]$ ps 31613
  PID TTY      STAT   TIME COMMAND
31613 ?        tl     0:00
/home/vm/codebase/systemtap/build/testsuite/utrace_p5_multi_31233
stap:[vm systemtap ((daa4b33...))]$ sudo kill -KILL 31613
stap:[vm systemtap ((daa4b33...))]$ ps 31613
  PID TTY      STAT   TIME COMMAND
31613 ?        tl     0:00
/home/vm/codebase/systemtap/build/testsuite/utrace_p5_multi_31233
stap:[vm systemtap ((daa4b33...))]$

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

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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-01 23:00 [Bug dyninst/16795] New: utrace_p5.exp leaves stapdyn processes running jlebon at redhat dot com
2014-04-01 23:01 ` [Bug dyninst/16795] " jlebon at redhat dot com
2014-04-22 18:40 ` jlebon at redhat dot com
2014-07-17 16:27 ` dsmith at redhat dot com
2017-05-16 19:10 ` 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).