I'm running cygwin on windows 10. I was messing around with some C++ and ran this code a bunch of times. My laptop turned unresponsive, and after a few seconds, I got a bluescreen and had to reboot. The thing is, all I'm doing is reading from memory and printing to stdout, which shouldn't cause this. I checked, and the array size doesn't exceed the max stack size for cygwin.
#include <stdio.h>
int main (){
double a[6675];
int i = 0;
while (i<6675){
printf("%f\n", a[i]);
++i;
}
return 0;
}