I have a C code which successfully runs under ubuntu, but when I am trying to run it on a red hat PC it is giving a “Segmentation fault (core dumped)” error. I have narrowed down the error to be from the following statement:
long int encryption[800000][2];
this declaration is causing the code to crash.
What can I do? Any suggesstions?
cheers =)
Change it to
Or make it global, or use
malloc.Or use
ulimit -s.