[SERVER-8785] Windows debug version of mongod.exe or mongos.exe gets stack overflow on ctrl-C on older Windows Created: 28/Feb/13  Updated: 23/Feb/17  Resolved: 23/Feb/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Windows XP and Windows Server 2003 provide a 256 KB stack for the thread that is created for the callback registered with the SetConsoleCtrlHandler() API. This callback runs when ctrl-C is pressed.

This small stack size conflicts with the StackChecker structure we create in debug builds.

The StackChecker structure is larger than 256 KB, so there is an immediate stack overflow on the call to the routine where it is declared.


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