public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/14488] New: stapdyn runtime needs deref et al.
@ 2012-08-18  1:26 jistone at redhat dot com
  2012-08-18  1:30 ` [Bug runtime/14488] " jistone at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jistone at redhat dot com @ 2012-08-18  1:26 UTC (permalink / raw)
  To: systemtap

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

             Bug #: 14488
           Summary: stapdyn runtime needs deref et al.
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap@sourceware.org
        ReportedBy: jistone@redhat.com
            Blocks: 14178
    Classification: Unclassified


stap's dyninst runtime currently doesn't provide any memory protection, so it
can easily cause SEGVs in the target process.  Dyninst actually catches this,
reports "SEGV IN PROCESS", and dumps a lot of state.  We'd like to instead
catch this in a controlled way with our usual deref() mechanisms.  A few
possibilities:

1. See if Dyninst can install a custom handler on that error, since it seems to
already catch it, then let us resume in our own way.

2. Install our own SEGV handler and figure out how to resume ourselves.  We
might end up competing for the signal handler though vs. Dyninst and the app
itself.

3. Do deref through pread() on /proc/self/mem instead, which hopefully gives
more controlled errors at bad addresses.  (dsmith's idea)

Options 1 and 2, if possible, have the advantage that they only penalize
overhead on the error case.  Option 3 requires at least a syscall every time,
whether or not the address is good, but I think it's still the most feasible
option for us to start with.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

* [Bug runtime/14488] stapdyn runtime needs deref et al.
  2012-08-18  1:26 [Bug runtime/14488] New: stapdyn runtime needs deref et al jistone at redhat dot com
@ 2012-08-18  1:30 ` jistone at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jistone at redhat dot com @ 2012-08-18  1:30 UTC (permalink / raw)
  To: systemtap

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

Josh Stone <jistone at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|systemtap at sourceware dot |dsmith at redhat dot com
                   |org                         |

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

end of thread, other threads:[~2012-08-18  1:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-18  1:26 [Bug runtime/14488] New: stapdyn runtime needs deref et al jistone at redhat dot com
2012-08-18  1:30 ` [Bug runtime/14488] " jistone 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).