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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Testing Infrastructure
    • Labels:
    • Sprint:
      TIG 2017-06-19

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: