[SERVER-65684] Allow stack limits to be testable Created: 14/Apr/22  Updated: 08/Jan/24  Resolved: 12/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Ryan Egesdahl (Inactive) Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: dp-qol
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Backwards Compatibility: Fully Compatible
Sprint: Dev Platform 2022-05-16, Dev Platform 2022-05-30, Dev Platform 2022-06-27, Dev Platform 2022-07-25
Participants:
Linked BF Score: 160

 Description   

In SERVER-63055, we completely removed halving the stack size on debug builds because it was preventing us from implementing coverage reporting with Clang and it was believed to not be of use anymore. However, jason.carey@mongodb.com points out that its original purpose was to serve as an early detection mechanism for new code that could potentially overflow the stack.

We should re-implement the stack size limitation more explicitly so that it can be tested as a distinct test scenario.



 Comments   
Comment by Githook User [ 22/Aug/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-65684 Make optimization default on with debug
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/e2b2f953eb7b3631a5f6cc3acf63f9c1f9f6e5db

Comment by Githook User [ 12/Aug/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-65684 Fix stack usage with ASAN and gcov
Branch: master
https://github.com/mongodb/mongo/commit/449166cccab8337574b4071dd3d8d61fca46cd52

Generated at Thu Feb 08 06:03:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.