]> 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>
Mon, 3 Jan 2022 11:02:29 +0000 (12:02 +0100)
This commit adds a configuration setting to enable a stack trace message
if Suricata receives a signal that terminates execution, such as
SIGSEGV, SIGABRT.

suricata.yaml.in

index f779904711ab6c883d54889ef8f50f22e03963cd..50c559bc19cac52053b308ceb68a88e03f5eaae1 100644 (file)
@@ -544,6 +544,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: