[PATCH v6 0/5] glibc: Add SFrame support for stack backtracing

Claudiu Zissulescu-Ianculescu claudiu.zissulescu-ianculescu@oracle.com
Wed Jul 2 13:10:21 GMT 2025


> It is not clear to me how this was tested, since there is no regression
> tests.  Is it because with --enable-sframe the -Wa,--gsframe will be
> used by default for all tests and thus the backtrace ones will use
> SFRAME? 

Indeed, that is what I did.

> 
> If it were the case I think we will need to add tests on backtrace for
> *both* cases, by disabling -Wa,--gsframe on some and adding
> -Wa,--gsframe on another to get full coverage independent whether
> --enable-sframe is used.

It is not clear for me how I can control CFLAGS option for a test. I can
add flags, but not much else.
Whenever the sframe is enable, the sframe option(-Wa,-gsframe) is added
to global CFLAGS. Actually, this is my current bottleneck in making a
half/half example where I should demonstrate how sframe stack backtracer
is falling back onto dwarf unwinder.
Any help here is much appreciated.

Best regards,
Claudiu



More information about the Libc-alpha mailing list