Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log/diag: Support diagnostic stacktraces on SIGSEGV #6243

Closed
wants to merge 6 commits into from

Commits on Jul 1, 2021

  1. configure.ac: Support libunwind configuration

    This commit adds support for enabling libunwind -- a library that can be
    used to display stack information.
    
    Use --enable-libunwind to check for availability. A diagnostic message
    is displayed if libunwind cannot be found as requested.
    jlucovsky committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    8c8344a View commit details
    Browse the repository at this point in the history
  2. error: Add error code for SIGSEGV diagnostic

    This commit adds an error code for the diagnostic code used for SIGSEGV
    diagnostic messages.
    jlucovsky committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    9141c37 View commit details
    Browse the repository at this point in the history
  3. logging: Stacktrace on SIGSEGV setting

    This commit adds a configuration setting to enable a stack trace message
    if Suricata receives a SIGSEGV.
    jlucovsky committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    6fb6d9a View commit details
    Browse the repository at this point in the history
  4. 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.
    jlucovsky committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    0f5d902 View commit details
    Browse the repository at this point in the history
  5. general: Fix typo

    jlucovsky committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    8be58a9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5844248 View commit details
    Browse the repository at this point in the history