The problem is likely in the data you are giving the tool. I am assuming the tool is well-written, which is not always true.
A segmentation fault occurs when a process tries to access memory beyond or outside of memory the process owns. For example, maybe you have 3 lines of data (100 bytes per line) that do not have newlines. If the code reads that one line into memory expecting 100 bytes it gets 400. (3+1 with a newline) The storage set up to read may only allow for 100 bytes, so when you read the long line, you have tried to write to a "part" of the memory you do not own.
While the program was running, I was supposed to press any key for further compilation. When I pressed enter, it resulted in segmentation fault. But when I pressed space or some other key, it worked and problem was solved.