Random malloc error in test_chann.cc