]> git.ipfire.org Git - thirdparty/suricata.git/commit
logging/diag: Enable stacktrace diagnostic if config'd
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 17 Jun 2021 13:07:29 +0000 (09:07 -0400)
committerVictor Julien <vjulien@oisf.net>
Mon, 3 Jan 2022 11:02:29 +0000 (12:02 +0100)
commit7f0f463b6475bbf69b24664485fc5b3b3bd8004b
tree855b8ee23204b40dcf0ce6e394b34fd4aaade5d8
parent163f70be9d87960fb260eb5c03383799f78b46b5
logging/diag: Enable stacktrace diagnostic if config'd

This commit adds a signal handler for SIGSEGV when configured. The
signal handler emits a one line stack trace using SCLogError. The intent
is to provide diagnostic information in deployments where core files are
not possible.

The diagnostic message is from the offending thread and includes the
stack trace; each frame includes the symbol + offset.
src/suricata.c