[SERVER-28809] Add a warning message at end of hang_analyzer.py if a ptrace error occurs in GDB on Linux Created: 14/Apr/17 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Eddie Louie | Assignee: | Backlog - Server Tooling and Methods (STM) (Inactive) |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | move-sdp-candidate, neweng, tig-hanganalyzer | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Server Tooling & Methods
|
||||
| Sprint: | TIG 2017-06-19 | ||||
| Participants: | |||||
| 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 |
| Comments |
| Comment by Steven Vannelli [ 10/May/22 ] |
|
Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions. |
| Comment by Cristopher Stauffer [ 06/Jul/17 ] |
|
I'm going to assign this back to backlog for now as I don't have time to dig into this ticket and it should be considered as another new eng ticket. |
| Comment by Cristopher Stauffer [ 25/May/17 ] |
|
Yes, max.hirschhorn I thought getting a chance to work with 2 different tickets (and 2 different people) would be valuable. I'm working with Robert today on the first one and will take on this one in the next iteration. |
| Comment by Max Hirschhorn [ 25/May/17 ] |
|
cristopher.stauffer, were you interested in picking this ticket up for the next iteration as well? |