Connection happens, but segfault