Mv comparator segfault