All of the examples I tried (examples/fiber/fibonacci, for one) segfault on Mac OS with Clang and GCC if Context is built using ucontext.
The tested configurations are:
- Mac OS 10.15, Clang 11.0
- Mac OS 11, Clang 11.1 and 12
- Mac OS 11, GCC 11.1
These configurations were tested under a different build system (which I ported to myself) but I did test the Boost build on Mac OS 11 with Clang 12 and had the same results. The Fibonacci example produced the correct output on Linux, FreeBSD, and Windows under the ported build.
The build commands I used are:
b2 toolset=clang cxxflags='-std=c++11' --with-context context-impl=ucontext stage
cd libs/context/examples/fiber
b2 toolset=clang cxxflags='-std=c++11' context-impl=ucontext
All of the examples I tried (examples/fiber/fibonacci, for one) segfault on Mac OS with Clang and GCC if Context is built using ucontext.
The tested configurations are:
These configurations were tested under a different build system (which I ported to myself) but I did test the Boost build on Mac OS 11 with Clang 12 and had the same results. The Fibonacci example produced the correct output on Linux, FreeBSD, and Windows under the ported build.
The build commands I used are: