...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
In theory, walking the stack without decoding and demangling should be async signal safe.
In practice, it is not:
-fomit-frame-pointer
like flags add additional complexity to the stack walking implementation,
which may also negatively affect the signal safety.
As a rule of thumb: do not capture stack traces in signal handlers unless you are absolutely sure in your environment and inspected all of its source codes.