> That might just mean that the testcase is slightly unrealistic.
> Getting a reliable backtrace through signal handlers when not having
> full CFI is probably not something we can expect to work. That doesn't
> mean having a frame pointer based fallback is a bad thing. We probably
> should find a more realistic testcase. And maybe in the future add an
> interface to allow people to unwind through "pure CFI" or mixed mode
> with frame markers that tell the caller whether the registers can be
> trusted or not.

The x86_64 case already works with the test case I sent. Maybe we can accept 
that one before the others. The aarch64 case almost works, but seems to 
generally duplicate the first entry it unwinds by frame pointer after unwinding 
anything by CFI. That should be fixable. I will research it and post a follow 
up patch. The 32bit arm case is a horrible mess and we may indeed need to lower 
our expectations for that one. Or maybe I can find a raise() that follows the 
same frame conventions as the gcc I'm using ...

br,
Ulf

Reply via email to