segfault in channel unit test