public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/6030] New: stap, staprun, stapio interaction quirks: stale module left unloaded
@ 2008-04-04 11:19 ananth at in dot ibm dot com
  2008-04-04 11:46 ` [Bug runtime/6030] " fche at redhat dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 20+ messages in thread
From: ananth at in dot ibm dot com @ 2008-04-04 11:19 UTC (permalink / raw)
  To: systemtap

A normal ^c to terminate a stap script induces the following signals:
sender sh signal SIGCHLD receiver stap
sender sshd signal SIGINT receiver stapio
sender sshd signal SIGINT receiver staprun
sender sshd signal SIGINT receiver stap
sender stapio signal SIGUSR2 receiver stapio
sender stapio signal SIGCHLD receiver staprun
sender staprun signal 0x20 receiver staprun
sender staprun signal SIGCHLD receiver stap
sender rm signal SIGCHLD receiver stap
sender stap signal SIGCHLD receiver bash

However, kill -9 on stap and then staprun, leads to an orphaned module
kill -9 to <stap_pid>
sender bash signal SIGKILL receiver stap
sender stap signal SIGCHLD receiver bash

then kill -9 to <staprun_pid>
sender bash signal SIGKILL receiver staprun
sender staprun signal SIGCHLD receiver init

then kill -9 to <stapio_pid>
sender bash signal SIGKILL receiver stapio
sender stapio signal SIGCHLD receiver init

The module is left unloaded. Probes from the module are unregistered though.

However, if we first do a kill -9 <stapio_pid>, things are fine:
sender bash signal SIGKILL receiver stapio
sender stapio signal SIGCHLD receiver staprun
sender staprun signal 0x20 receiver staprun
sender staprun signal SIGCHLD receiver stap
sender rm signal SIGCHLD receiver stap
sender stap signal SIGCHLD receiver bash

Similar issues are seen with a kill -SIGINT to <stap_pid> or <staprun_pid>

There needs to be a clean way of killing all three process along with module
unload when one of the processes is killed.

-- 
           Summary: stap, staprun, stapio interaction quirks: stale module
                    left unloaded
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: ananth at in dot ibm dot com


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

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

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

end of thread, other threads:[~2008-07-23 14:49 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-04 11:19 [Bug runtime/6030] New: stap, staprun, stapio interaction quirks: stale module left unloaded ananth at in dot ibm dot com
2008-04-04 11:46 ` [Bug runtime/6030] " fche at redhat dot com
2008-04-04 11:47   ` Ananth N Mavinakayanahalli
2008-04-04 15:43     ` Martin Hunt
2008-04-04 14:20 ` ananth at in dot ibm dot com
2008-04-04 21:10 ` hunt at redhat dot com
2008-04-08 14:13 ` ananth at in dot ibm dot com
2008-04-08 16:19 ` fche at redhat dot com
2008-07-07 20:32 ` anithra at linux dot vnet dot ibm dot com
2008-07-08 16:37 ` fche at redhat dot com
2008-07-08 19:10 ` anithra at linux dot vnet dot ibm dot com
2008-07-10 16:44 ` anithra at linux dot vnet dot ibm dot com
2008-07-10 17:05 ` fche at redhat dot com
2008-07-17 13:28   ` anithra
2008-07-17 17:48     ` Frank Ch. Eigler
2008-07-10 17:45 ` anithra at linux dot vnet dot ibm dot com
2008-07-10 18:00 ` fche at redhat dot com
2008-07-17 18:55 ` fche at redhat dot com
2008-07-23 14:41 ` anithra at linux dot vnet dot ibm dot com
2008-07-23 14:49 ` fche 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).