[SERVER-47880] Send SIGSTOP to all processes before attaching to any Created: 01/May/20  Updated: 29/Oct/23  Resolved: 19/Jun/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Task Priority: Major - P3
Reporter: Raiden Worley (Inactive) Assignee: Mikhail Shchatko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: STM 2020-06-29
Participants:
Story Points: 2

 Description   

We can prevent processes from getting unstuck when the hang analyzer attaches to them by sending SIGSTOP to all of them first. Commands that run in process threads should still work if we use these commands:

(gdb) handle SIGSTOP ignore
 
(gdb) handle SIGSTOP noprint



 Comments   
Comment by Githook User [ 19/Jun/20 ]

Author:

{'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com'}

Message: SERVER-47880 Send SIGSTOP to all processes before attaching to any
Branch: master
https://github.com/mongodb/mongo/commit/412a1169bc51d40ea8b54b4118f9c9679e3dd315

Comment by Raiden Worley (Inactive) [ 01/May/20 ]

Should also keep in mind SERVER-47755 and how the SIGSTOPs would affect the handling of SIGABRT in the signal handler thread.

Comment by Raiden Worley (Inactive) [ 01/May/20 ]

We had discussed this in the comments of SERVER-46693 and were considering doing it as part of SERVER-46682, but since that latter ticket is going to be pretty involved I figured it makes sense to file a separate ticket.

Generated at Thu Feb 08 05:15:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.