How to use backtrace() safely in signal handler.

Carlos O'Donell carlos@systemhalted.org
Thu Dec 5 14:02:00 GMT 2019


On Thu, Dec 5, 2019 at 8:16 AM Paul Guo <paulguo@gmail.com> wrote:
> but I want to know how unsafe it is and see if I could use that safely in
> signal handler with some limitations.

Why do you want to call backtrace() from a signal handler?

In the past this was the accepted practice for doing crash backtrace handling.

In-process crash backtrace handling is a security risk and unsafe.

Is there any reason why you don't pursue out-of-process handling?

Cheers,
Carlos.



More information about the Libc-help mailing list