Compiled, built and run following exactly http://www.youtube.com/watch?v=IsBO-Kf2k2U
Enter screen width: 320
Enter screen height: 240
Enter screen bpp: 24
Enter '1' for fullscreen '0' for windowed: 0
===================================================
OpenGL Information
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce4 Ti 4200 with AGP8X/AGP/SSE/3DNOW!
GL_VERSION: 1.5.8 NVIDIA 96.43.05
===================================================
Segmentation fault
I recompiled with -g and ran with gdb but it wasn't much help.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6f57aa0 (LWP 29602)]
0x00000000 in ?? ()
(gdb)
Platform: up-to-date ubuntu 8.04 on AMD Sempron (32 bit) with nvidia drivers:
ii nvidia-glx 1:96.43.05+2.6.24.13-19.45 NVIDIA binary XFree86 4.x/X.Org driver
ii nvidia-kernel-common 20051028+1ubuntu8 NVIDIA binary kernel module common files
I have similar or may be the same segfault with same version of nvidia drivers. Here is backtrace:
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x0804e220 in Shader::load (this=0xbfa68424, pVertexShaderFileName=0x804ee58 "data/shaders/light-basic.vert",
pFragmentShaderFileName=0x804ee3a "data/shaders/light-basic.frag") at shader.cpp:60
#2 0x0804d027 in SceneShading::load (this=0xbfa683dc) at sceneshading.cpp:19
#3 0x08049ac6 in main () at main.cpp:36
The crash could be fixed by replacing glLinkProgram() call with glLinkProgramARB() one inside shader.cpp