Re: [Boost-bugs] [Boost C++ Libraries] #12592: Wrongly aligned bottom stack address

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12592: Wrongly aligned bottom stack address
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-22 18:21:23


#12592: Wrongly aligned bottom stack address
-------------------------------------------------+-------------------------
  Reporter: Christian Maaser | Owner: olli
  <runningwithscythes@…> | Status: closed
      Type: Bugs | Component: context
 Milestone: To Be Determined | Severity: Problem
   Version: Boost 1.62.0 | Keywords:
Resolution: worksforme |
-------------------------------------------------+-------------------------
Changes (by olli):

 * status: new => closed
 * resolution: => worksforme

Comment:

 I've had to look at this bug report in more detail:

 The bottom stack is correctly aligned (16-byte) - the problem is that

    execution_context<int> source([](execution_context<int> sink, int)

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

 Windows does not provide segemented (on demand growing) stacks.

 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):

     execution_context<int> source(
               std::allocator_arg, protected_fixedsize_stack( 64*1024),
              [](execution_context<int> sink, int)

 In your case you used the fixedsize_stack with a stack size of 64kb, which
 seams too small for your use case.

 So, I close this bug as 'works for me'.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12592#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC