The copying of a std::deque appears to cause problems on CentOS 6. Using an std::list seems to work without problems.