The module bgl crashes Blender

I was trying to take the bgl.glBegin module for a test drive. I tried to assign one of the parameters to GL_LINES, which is one of the primitives that are used in OpenGL. However, when I press P to play Blender crashed. This is quite mysterious and I need help with explaining why Blender does that.

Sounds like a video card error. Just a shot in the dark, though.

Place in the code so we can test it too.