Running programs that switch stacks under valgrind causes problems. Property (b2 command-line) valgrind=on lets valgrind treat the memory regions as stack space which suppresses the errors.
valgrind=on