I am using POSIX threads in my C program. The program reads integer values from a file to process. I get a Segmentation fault (core dumped) error during execution when I have more than 6 integers in my input file. The program executes perfectly fine when I have up to 6 integers in the input file. The program seems to be failing during the pthread_join call. Has anyone come across such a situation? Any thoughts on this is greatly appreciated.