Here is my configuration :
Ubuntu 9.10
NVIDIA driver 190.29 (not the default one, installed by hand)
OpenGL 3.2, core profile (but I get the same problem in compatibility mode)
Problem : when declaring “invariant gl_Position;” in my vertex shader, the program segfaults at glCompileShader(vertex_id).
My best luck has been to post it here, and hope some NVidia programmer reads it (few drop by here once in a while). I reported one or two bugs and they were fixed eventually, but they may have been reported by others as well, so I’m not sure. I’m not aware of any official bug report system anyway.
Yes. There’s one at https://nvdeveloper.nvidia.com/. Log in, and click Report a Problem in the upper-left toolbar. I’ve had pretty good success with this method.
Posting problems here, if there’s question that what you’re seeing is your bug or a driver bug, also works well.
But over the years I’ve only had marginal success mailing the nvidia product support e-mail addresses. Exceptions being the NVPerfKit and Cg support addresses, but it’s been years since I mailed those.
I am not sure it is not a bug from me (maybe I do not use the API correctly), but anyway, adding a line in a shader should not make the driver crash, and make Valgrind unable to tell me what the call stack is…
I will try to reduce the program for removing all dependencies.
Assuming you haven’t corrupted memory before that point, you’re absolutely right. And valgrind should be able to confirm that.
I will try to reduce the program for removing all dependencies.
Ok, and please do post when you get it whittled down to a short test program so we can all run on various driver versions/vendors, and establish whether it’s a driver bug.
I bundled GLFW and GLEW in it, created scripts for easy compilation and execution and reduced the program to a minimum.
GLFW version is from SVN, GLEW is the latest version, with a tiny modification I made for it not to use the deprecated call to glGetString(GL_EXTENSIONS) (Cf this bug tracker : http://sourceforge.net/tracker/?func=detail&atid=523274&aid=2927731&group_id=67586 )
GLFW needs Xrandr to compile (and maybe something called xf86vm, not sure about this).
As stated in the README file, you normally just need to uncomment “invariant gl_Position;” in “simple.vert” for the program to crash (at least it crashes on my configuration).
I hope the dependency to Xrandr/GLFW is not a problem ^^