Changes between Version 3 and Version 4 of Ticket #12592, comment 5
- Timestamp:
- Jan 22, 2017, 6:26:07 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12592, comment 5
v3 v4 1 I've had time to look at this bug reportin more detail:1 I've had time to look at this bug in more detail: 2 2 3 3 The bottom stack is correctly aligned (16-byte) - the problem is that … … 5 5 execution_context<int> source([](execution_context<int> sink, int) 6 6 7 Uses the 'fixedsize_stack' with a default size of 64kB. That means that in best case you get an segmentation fault if you excceed the stack size (allocating 7 arrays on the stack).7 uses the 'fixedsize_stack' with a default size of 64kB. That means that in best case you get an segmentation fault if you excceed the stack size (allocating 7 arrays on the stack). 8 8 9 9 Windows does not provide segemented (on demand growing) stacks. 10 10 11 If you use the 'protected_fixedsize_stack' you get an guard page appended . If you access memory fro m that page you get an 'stack overflow' exception (tested):11 If you use the 'protected_fixedsize_stack' you get an guard page appended at the stack. If you access memory from that page an 'stack overflow' exception is raised: 12 12 13 13 execution_context<int> source( … … 15 15 [](execution_context<int> sink, int) 16 16 17 In your case you used the fixedsize_stack with a stack size of 64kb, which seams too small for your use case. 17 In your case you used the fixedsize_stack with a stack size of 64kb, which seams too small for your use case. You should try a larger stack size. 18 18 19 19 So, I close this bug as 'works for me'.