Has anyone encountered a situation where simply declaring an additional variable causes a segfault when reading a file? I have the following int variables declared:

Code:
int array[20], i = 0, numReturned = 0; 
int killIt = 0, numKilled = 0;
Simply adding another variable, a, to the above causes a segfault in my program when reading a file with a function.