g++ main.cpp -o crash -lGL -lglut -lGLU
main.cpp: In function ‘int main(int, char**)’:
main.cpp:293: error: ‘GLUT_DEP’ was not declared in this scope
Ok. Probably, you mean "GLUT_DEPTH".
I tried your example and I got your same result (GeForce 8400GS); the screen starts blinking and then the app crashes.
Compiled shader 35632, number of active uniforms: 0
Compiled shader 35633, number of active uniforms: 0