getaddrinfo() thread failed to start