public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/3718] New: -c option runs a program but doesn't exit
@ 2006-12-14 17:16 eteo at redhat dot com
  2006-12-14 17:16 ` [Bug runtime/3718] " eteo at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: eteo at redhat dot com @ 2006-12-14 17:16 UTC (permalink / raw)
  To: systemtap

SystemTap has a -c option that runs a command/program and exits when it
finishes. But in some cases, unfortunately, it does not exit even though the
command/program has exited.

[eteo@kerndev profiler]$ stap -V
SystemTap translator/driver (version 0.5.10 built 2006-10-26)
(Using Red Hat elfutils 0.124 libraries.)
Copyright (C) 2005-2006 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
[eteo@kerndev profiler]$ /usr/bin/env stap -c gaim poll-select.stp 10000
Password:
libnm_glib_nm_state_cb: dbus returned an error.
  (org.freedesktop.DBus.Error.ServiceUnknown) The name
org.freedesktop.NetworkManager was not provided by any .service files





(gaim has ended at this point. it just doesn't stop regardless how many ctrl+c I
used)
[1]+  Stopped                 ./profiler.sh -s poll-select.stp -d 10000 -c gaim
[eteo@kerndev profiler]$ killall -9 stap
[eteo@kerndev profiler]$ sudo killall -9 staprun
[eteo@kerndev profiler]$ ps aux | grep stap
eteo      7127  1.6  0.0      0     0 pts/6    Z    20:51   0:00 [stap] <defunct>
root      7249  0.0  0.0   1488   212 pts/6    D    20:51   0:00 /sbin/rmmod -w
stap_7127.ko
eteo      7256  0.0  0.0   3880   680 pts/6    R+   20:51   0:00 grep stap

poll-select.stp is a simple stp script that runs for 10000ms, and exit.

-- 
           Summary: -c option runs a program but doesn't exit
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: eteo at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3718

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

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

* [Bug runtime/3718] -c option runs a program but doesn't exit
  2006-12-14 17:16 [Bug runtime/3718] New: -c option runs a program but doesn't exit eteo at redhat dot com
@ 2006-12-14 17:16 ` eteo at redhat dot com
  2006-12-14 22:10 ` hunt at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: eteo at redhat dot com @ 2006-12-14 17:16 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From eteo at redhat dot com  2006-12-14 13:20 -------
[eteo@kerndev profiler]$ sudo /sbin/rmmod stap_7127.ko
ERROR: Module stap_7127 is in use
[eteo@kerndev profiler]$ sudo /sbin/rmmod -f stap_7127.ko
ERROR: Removing 'stap_7127': Device or resource busy
[eteo@kerndev profiler]$ /sbin/lsmod | grep stap_
stap_7127             655816  1

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3718

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

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

* [Bug runtime/3718] -c option runs a program but doesn't exit
  2006-12-14 17:16 [Bug runtime/3718] New: -c option runs a program but doesn't exit eteo at redhat dot com
  2006-12-14 17:16 ` [Bug runtime/3718] " eteo at redhat dot com
@ 2006-12-14 22:10 ` hunt at redhat dot com
  2006-12-15  1:11 ` eteo at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hunt at redhat dot com @ 2006-12-14 22:10 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From hunt at redhat dot com  2006-12-14 18:27 -------
(In reply to comment #0)
> [eteo@kerndev profiler]$ /usr/bin/env stap -c gaim poll-select.stp 10000
>
> (gaim has ended at this point. it just doesn't stop regardless how many ctrl+c I
> used)
> [1]+  Stopped                 ./profiler.sh -s poll-select.stp -d 10000 -c gaim

Why do you think gaim has exited when it says "stopped" for status?  What is
"profiler.sh"? Does "ps aux | grep gaim" show anything?

> [eteo@kerndev profiler]$ killall -9 stap
> [eteo@kerndev profiler]$ sudo killall -9 staprun
> [eteo@kerndev profiler]$ ps aux | grep stap
> eteo      7127  1.6  0.0      0     0 pts/6    Z    20:51   0:00 [stap] <defunct>
> root      7249  0.0  0.0   1488   212 pts/6    D    20:51   0:00 /sbin/rmmod -w
> stap_7127.ko

Hmmm. Whay is stap zombied? Where is it's parent? 

> poll-select.stp is a simple stp script that runs for 10000ms, and exit.

Does the same thing happen with other scripts?

I cannot reproduce this and reading through the code doesn't immediately reveal
any places where staprun fails to receive SIGCHLD.  



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=3718

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

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

* [Bug runtime/3718] -c option runs a program but doesn't exit
  2006-12-14 17:16 [Bug runtime/3718] New: -c option runs a program but doesn't exit eteo at redhat dot com
  2006-12-14 17:16 ` [Bug runtime/3718] " eteo at redhat dot com
  2006-12-14 22:10 ` hunt at redhat dot com
@ 2006-12-15  1:11 ` eteo at redhat dot com
  2006-12-15  2:15 ` eteo at redhat dot com
  2007-09-19 21:44 ` hunt at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: eteo at redhat dot com @ 2006-12-15  1:11 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From eteo at redhat dot com  2006-12-15 00:41 -------
(In reply to comment #2)
> (In reply to comment #0)
> > [eteo@kerndev profiler]$ /usr/bin/env stap -c gaim poll-select.stp 10000
> >
> > (gaim has ended at this point. it just doesn't stop regardless how many ctrl+c I
> > used)
> > [1]+  Stopped                 ./profiler.sh -s poll-select.stp -d 10000 -c gaim
> 
> Why do you think gaim has exited when it says "stopped" for status?  What is
> "profiler.sh"? Does "ps aux | grep gaim" show anything?

I should be clearer.

To reproduce the problem, type:
stap -c gaim -o log -e 'probe syscall.poll { log(argstr) }'

When gaim is running, click Buddies from the menu, and then Quit. You will find
that you are unable to halt stap/staprun/rmmod.

Some programs work, some doesn't. I tried vpngui, it works all the time, I tried
Thunderbird, it works sometimes (File -> Quit, but not Alt+F4). I have not check
the exit code of these programs, but I am sure that it has stopped running after
I quit these programs.

I am trying to walkthrough these as a potential end-user.

What you see below are what I tried to do to stop stap/staprun/rmmod.

> > [eteo@kerndev profiler]$ killall -9 stap
> > [eteo@kerndev profiler]$ sudo killall -9 staprun
> > [eteo@kerndev profiler]$ ps aux | grep stap
> > eteo      7127  1.6  0.0      0     0 pts/6    Z    20:51   0:00 [stap]
<defunct>
> > root      7249  0.0  0.0   1488   212 pts/6    D    20:51   0:00 /sbin/rmmod -w
> > stap_7127.ko
> 
> Hmmm. Whay is stap zombied? Where is it's parent? 
> 
> > poll-select.stp is a simple stp script that runs for 10000ms, and exit.
> 
> Does the same thing happen with other scripts?
> 
> I cannot reproduce this and reading through the code doesn't immediately reveal
> any places where staprun fails to receive SIGCHLD.  
> 
> 

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3718

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

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

* [Bug runtime/3718] -c option runs a program but doesn't exit
  2006-12-14 17:16 [Bug runtime/3718] New: -c option runs a program but doesn't exit eteo at redhat dot com
                   ` (2 preceding siblings ...)
  2006-12-15  1:11 ` eteo at redhat dot com
@ 2006-12-15  2:15 ` eteo at redhat dot com
  2007-09-19 21:44 ` hunt at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: eteo at redhat dot com @ 2006-12-15  2:15 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wmealing at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3718

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

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

* [Bug runtime/3718] -c option runs a program but doesn't exit
  2006-12-14 17:16 [Bug runtime/3718] New: -c option runs a program but doesn't exit eteo at redhat dot com
                   ` (3 preceding siblings ...)
  2006-12-15  2:15 ` eteo at redhat dot com
@ 2007-09-19 21:44 ` hunt at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: hunt at redhat dot com @ 2007-09-19 21:44 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From hunt at redhat dot com  2007-09-19 21:06 -------
Cannot reproduce with current release. If this is still a problem, please reopen
with more details.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=3718

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

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

end of thread, other threads:[~2007-09-19 21:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-14 17:16 [Bug runtime/3718] New: -c option runs a program but doesn't exit eteo at redhat dot com
2006-12-14 17:16 ` [Bug runtime/3718] " eteo at redhat dot com
2006-12-14 22:10 ` hunt at redhat dot com
2006-12-15  1:11 ` eteo at redhat dot com
2006-12-15  2:15 ` eteo at redhat dot com
2007-09-19 21:44 ` hunt 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).