If you run setgenerate true too rapidly in regtest mode, bitcoind can crash with
/home/ubuntu/install/include/boost/thread/pthread/condition_variable_fwd.hpp:81: boost::condition_variable::~condition_variable(): Assertion `!ret' failed.
This was reproduced with the Linux 64bit gitian binary.