public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/12196] New: avoid varargs in script-invokable runtime
@ 2010-11-05 18:19 fche at redhat dot com
  2010-11-08 20:02 ` [Bug runtime/12196] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: fche at redhat dot com @ 2010-11-05 18:19 UTC (permalink / raw)
  To: systemtap

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

           Summary: avoid varargs in script-invokable runtime
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: fche@redhat.com


Functions such as printf() translate to varargs calls upon the runtime.
GCC doesn't protect us against stack overflows well (see GCC PR41633 e.g.).

It doesn't have to be this way.  We can use the per-probe-invocation context[]
structure as temporary space.  Let's expand printf() to an array of parameters
in the context -- like script-function calls.  Let's have printf()s store a
flag in the context afterwards, to let us know whether the __stp_print_flush()
thing at the conclusion of the probe handler is at all necessary.

-- 
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/12196] avoid varargs in script-invokable runtime
  2010-11-05 18:19 [Bug runtime/12196] New: avoid varargs in script-invokable runtime fche at redhat dot com
@ 2010-11-08 20:02 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2010-11-08 20:02 UTC (permalink / raw)
  To: systemtap

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

Frank Ch. Eigler <fche at redhat dot com> changed:

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

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> 2010-11-08 20:01:36 UTC ---
*** Bug 10942 has been marked as a duplicate of this bug. ***

-- 
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:[~2010-11-08 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-05 18:19 [Bug runtime/12196] New: avoid varargs in script-invokable runtime fche at redhat dot com
2010-11-08 20:02 ` [Bug runtime/12196] " 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).