hunting for the segfault