Segfaults in split