[SERVER-28463] Add set scheduler-locking to Hang Analyzer to prevent threads from running in GDB Created: 23/Mar/17  Updated: 06/Dec/17  Resolved: 30/Mar/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.4.5, 3.5.6

Type: Task Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Sprint: TIG 2017-04-17
Participants:
Linked BF Score: 0

 Description   

As mentioned in SERVER-28437, when GDB invokes a function, the threads can execute. Perhaps using the command set scheduler-locking on will keep them from executing and modifying the state of the locks. Note, according to the documentation, "On some OSes, you can modify GDB’s default behavior by locking the OS scheduler to allow only a single thread to run. ", so this should be tested thoroughly on all platforms.



 Comments   
Comment by Githook User [ 28/Apr/17 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-28463 Add set scheduler-locking to Hang Analyzer to prevent threads from running in GDB

(cherry picked from commit a95d617a379cbccce55d6335903e700d157af4c1)
Branch: v3.4
https://github.com/mongodb/mongo/commit/236dbb96258a63eaa5aa00aeec9d161cd4ce6c62

Comment by Githook User [ 30/Mar/17 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-28463 Add set scheduler-locking to Hang Analyzer to prevent threads from running in GDB
Branch: master
https://github.com/mongodb/mongo/commit/a95d617a379cbccce55d6335903e700d157af4c1

Generated at Thu Feb 08 04:18:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.