public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/5218] New: Failed to detach staprun when it attached a running script
@ 2007-10-24 20:53 mhiramat at redhat dot com
  2007-10-26  4:41 ` [Bug runtime/5218] " hunt at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mhiramat at redhat dot com @ 2007-10-24 20:53 UTC (permalink / raw)
  To: systemtap

staprun unloads a script instead of detaching from it if the staprun was
attached to the script.

You can check it as follows:
1. make a script
 $ stap -m foo -e 'probe begin{;}' -p4
2. launch it.
 $ staprun -L foo.ko
3. attach.
 $ staprun -A foo
4. send SIGQUIT
 ^4
5. check whether the script is loaded
 $ lsmod | grep foo

AFAICS, the 'initialized' global variable in stapio is not initialized 
correctly when '-A' option is given.

Thanks,

-- 
           Summary: Failed to detach staprun when it attached a running
                    script
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mhiramat at redhat dot com


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

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

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

end of thread, other threads:[~2007-10-26  4:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-24 20:53 [Bug runtime/5218] New: Failed to detach staprun when it attached a running script mhiramat at redhat dot com
2007-10-26  4:41 ` [Bug runtime/5218] " 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).