Reliable user-space stack traces with SFrame
Reliable user-space stack traces with SFrame
Posted May 23, 2023 0:32 UTC (Tue) by brenns10 (subscriber, #112114)Parent article: Reliable user-space stack traces with SFrame
This is such an exciting project, it's the "have your cake and eat it, too" approach to stack unwinding. No extra code generated for frame pointers, no wasted register or icache. But still reliable unwinding without relying on the full DWARF debuginfo.
Hopefully this becomes standard along with CTF for lightweight introspection. Programs may want to unwind their own stack or examine the layout of data structures, so there's already good use cases. What's more, debuggers can do a lot with a symbol table, a reliable unwinder, and the basic information about types provided by CTF. While dwarf is better suited for development tasks, these smaller formats could fill a nice for basic diagnostics in production environments where debuginfo isn't available.
Posted May 23, 2023 7:25 UTC (Tue)
by roc (subscriber, #30627)
[Link] (5 responses)
I'm worried that people who want to build binaries with full debugging information or just stack traces with parameter values are going to have to build even *bigger* binaries with both DWARF and SFrame information.
Posted May 23, 2023 8:40 UTC (Tue)
by Sesse (subscriber, #53779)
[Link] (3 responses)
Posted May 23, 2023 9:52 UTC (Tue)
by atnot (subscriber, #124910)
[Link] (2 responses)
I don't know how much of this is needed to only do unwinding, but the idea of DWARF in the kernel is a very spooky prospect to me.
Posted May 23, 2023 9:59 UTC (Tue)
by atnot (subscriber, #124910)
[Link]
Posted May 24, 2023 5:09 UTC (Wed)
by lathiat (subscriber, #18567)
[Link]
Posted May 25, 2023 2:53 UTC (Thu)
by himi (subscriber, #340)
[Link]
I think it'd be pretty similar to the dlopen() scenario, except that instead of just pointing at existing SFrame data for the object it'd generate the data from another source first.
Reliable user-space stack traces with SFrame
Reliable user-space stack traces with SFrame
Reliable user-space stack traces with SFrame
Reliable user-space stack traces with SFrame
Reliable user-space stack traces with SFrame
https://www.polarsignals.com/blog/posts/2022/11/29/dwarf-...
https://news.ycombinator.com/item?id=33788794
Reliable user-space stack traces with SFrame