- 
    Type:
Improvement
 - 
    Resolution: Unresolved
 - 
    Priority:
Major - P3
 - 
    None
 - 
    Affects Version/s: None
 - 
    Component/s: Testing Infrastructure
 
- 
        Server Tooling & Methods
 - 
        TIG 2017-06-19
 - 
        None
 
- 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 
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