endless loop eliminated, user data on socket set. crash is observed