]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
logging: Stacktrace on signal term setting
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 17 Jun 2021 13:04:56 +0000 (09:04 -0400)
committerVictor Julien <vjulien@oisf.net>
Thu, 7 Apr 2022 17:30:44 +0000 (19:30 +0200)
This commit adds a configuration setting to enable a stack trace message
if Suricata receives a signal that terminates execution, such as
SIGSEGV, SIGABRT.

(cherry picked from commit 163f70be9d87960fb260eb5c03383799f78b46b5)

suricata.yaml.in

index 2221fd2bb10d38f4b2a3a7f0e94fad0b609c3d5b..03818e2965e96bcc92e976468b95e184b868ec7b 100644 (file)
@@ -551,6 +551,11 @@ logging:
   # This value is overridden by the SC_LOG_OP_FILTER env var.
   default-output-filter:
 
+  # Requires libunwind to be available when Suricata is configured and built.
+  # If a signal unexpectedly terminates Suricata, displays a brief diagnostic
+  # message with the offending stacktrace if enabled.
+  #stacktrace-on-signal: on
+
   # Define your logging outputs.  If none are defined, or they are all
   # disabled you will get the default: console output.
   outputs: