deadlock resolved but seg fault