public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/4633] New: backtracing broken
@ 2007-06-12 19:57 fche at redhat dot com
  2007-06-12 20:56 ` [Bug runtime/4633] " fche at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fche at redhat dot com @ 2007-06-12 19:57 UTC (permalink / raw)
  To: systemtap

Bug #3050 may have been closed but the bug did not stay dead.  The same code on
current fc7 kernels gives the usual single line of backtrace info.
The kernel backtracer always seems to do a better job than the code in the runtime.

There are several problems with the code.  It uses unprotected dereference code
like "*stack++", even though the stack values are not completely reliable.  It
does not know how to distinguish between alternative stacks such as the trap stack,
the normal kernel stack, or whatever happens to come in pt_regs.  This is key
because backtrace() should from both kprobes and from ordinary hook calls
such as timers, begin/end, and markers.  The backtrace() function should not
include the "Inexact backtrace:" string, as this breaks subsequent tokenizing 
with print_stack().

-- 
           Summary: backtracing broken
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com
  GCC host triplet: x86-64


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

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

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

end of thread, other threads:[~2007-08-20 19:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-12 19:57 [Bug runtime/4633] New: backtracing broken fche at redhat dot com
2007-06-12 20:56 ` [Bug runtime/4633] " fche at redhat dot com
2007-08-20 17:40 ` mhiramat at redhat dot com
2007-08-20 21:39 ` 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).