[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. |