Boost logo

Boost :

Subject: Re: [boost] [context] Linux x64 / printf
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-09-12 01:57:34


> I can confirm that using default_stacksize() instead of minimum
> stack size fixes the problem.

fine ;)

> So it would appear that stderr must use the
> stack for scratch space. So apparently, linux has a min stack size of 8kb
> which is relatively small!

It's a general problem that boost.context can not predict how much stack space would be required. With automatically growing stack (like GCC's split stacks) the problewm would be gone - unfortunately no standard for such a stack API exists.

Oliver


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk