Segmentation fault in Unix shell (linux OS)

Hi,

I am trying to run an online downloaded tool but I am having an eror segmentation fault.

./multicoil test.seq
Config file /home/kmohanas/MULTICOIL/multicoil_config
window length 0 = 28
window length 1 = 28
multi_lib = 3 4 5 
multi_lib = 2 3 4 
pair_lib = 1 2 4 
printfile = /dev/null
log = ~/MULTICOIL/TEST_RUNS/test.seq.log
seq scores = ~/MULTICOIL/TEST_RUNS/test.seq.seq_scores
out = ~/MULTICOIL/TEST_RUNS/test.seq.out
Reading Gen Frequences.
Reading Position Frequences.
Reading Position Frequences.
Segmentation fault

Any help is much appreciated

Thanks

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.

It is not the shell that's segfaulting. The shell is sitting doing nothing waiting for the tool to quit when the segfault happens.

Hi all,

Thanks for the reply. I figured it out where it went wrong. Thanks again.

Then please take a few minutes to share the solution with everyone. It may help someone else in the future.

Regards,
Alister

yes please

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.