Duplicate of Segmentation fault in C program. Thread closed. Please do not create the same thread over and over again