Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28809

Add a warning message at end of hang_analyzer.py if a ptrace error occurs in GDB on Linux

    • Server Tooling & Methods
    • TIG 2017-06-19

      If we run the hang_analyzer.py without sudo or with ptrace restriction enabled then GDB may not be able to attach to processes. We should dump a warning message to the effect that the user has to use sudo, or change their configuration to have kernel.yama.ptrace_scope = 0 in the /etc/sysctl.d/10-ptrace.conf file. Could also temporarily disable ptrace restriction with echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            eddie.louie Eddie Louie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: