FRIDAY, APRIL 17, 2026
sframe — Proposed
sframe: Add SFrame v3 decode support for regular FDEs
This patch adds support for decoding SFrame v3 format, which includes changes to function descriptor layouts and stack trace backtracing.
This patch adds SFrame v3 format definitions and updates backtrace routines to handle both v2 and v3 function descriptor layouts. The updated stack trace backtracer detects the outermost frame, reads v3 index/attribute records, performs bounds checks, and uses int64_t PC/start-address handling. The patch looks good, with a minor indentation nit.
Technical Tradeoffs
- Adds complexity to the sframe decoding logic.
- Requires careful handling of different SFrame versions.
- May introduce performance overhead due to additional checks and processing.
- Needs to maintain compatibility with existing SFrame v2 implementations.