I get an odd error when I try to compile my code that is written in C. The error says
segmentation fault (core dumped)
In my code, I have many really large double arrays (for example, about 100,000 in size). I initialize one array of twins, and when I try to initialize the array immediately after the same size (approximately 100,000 lengths), it gives me a segmentation error error. Oddly enough, it depends on the size of the array. For example, if I do
double arr[70000];
It gives me a segmentation error, but
double arr[60000];
doesn't give me an error. I run my code on a Linux machine if that helps. I really need a lot of different very large double arrays. What's happening?