Hi there,
I have been coding a small OpenGL project using GLUT and GLEW, and everything used to work fine under Windows, Linux and Mac OS 10.5… until I decided to upgrade to Snow Leopard (10.6.3).
The symptoms ? A Segmentation fault, showing a KERN_INVALID_ADDRESS at 0x0000000000000000. The last part of the stack shows a call to GLUT-3.4.4…
Binary Images:
0x100000000 - 0x10000aff7 +glsl_template ??? (???) <D98EB6B9-AB89-4C15-739A-BC5CA3A8AA53> /Users/stratboy61/Documents/glsl_template/glsl_template
0x100014000 - 0x100060fe7 com.apple.glut 3.4.4 (GLUT-3.4.4) <78324374-C4AC-2358-3D61-55060E44FC38> /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT
0x1000e1000 - 0x100102fff libGLEW.1.5.3.dylib ??? (???) <3E18F9F4-9312-6098-0FFA-F07456082376> /usr/lib/libGLEW.1.5.3.dylib
0x100126000 - 0x100150fff +libGL.1.dylib 1.2.0 (compatibility 1.2.0) <8AF04902-EE6B-636F-62AC-4353F550CC2B> /usr/X11/lib/libGL.1.dylib
0x100169000 - 0x1001cdfef +libGLU.1.dylib 1.3.0 (compatibility 1.3.0) <5F85284F-5DA3-BE6F-AC87-E0EA13ECB4EC> /usr/X11/lib/libGLU.1.dylib
0x1001e2000 - 0x1001e8ff7 com.apple.agl 3.0.12 (AGL-3.0.12) <C8CBED46-DB62-3D5C-70BE-B6FD407223A8> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
0x1001ef000 - 0x1001fcfe7 libXplugin.1.dylib ??? (???) <CD329331-3561-20AE-D166-5C87BAC83D37> /usr/lib/libXplugin.1.dylib
0x100206000 - 0x100212ff7 +libXext.6.dylib 11.0.0 (compatibility 11.0.0) <169004BC-1FA3-A19C-B818-DACC66423F67> /usr/X11/lib/libXext.6.dylib
0x100219000 - 0x10032aff7 +libX11.6.dylib 9.0.0 (compatibility 9.0.0) <1363DEB7-B718-202D-537F-B0769D6A329C> /usr/X11/lib/libX11.6.dylib
0x100350000 - 0x100353fef +libXdmcp.6.dylib 7.0.0 (compatibility 7.0.0) <EEC19E9E-A303-01DF-D05A-2EB65054242C> /usr/X11/lib/libXdmcp.6.dylib
0x100358000 - 0x100359ff7 +libXau.6.dylib 7.0.0 (compatibility 7.0.0) <BC858886-138B-D7D3-48CE-E9EFA56747E8> /usr/X11/lib/libXau.6.dylib
0x10073c000 - 0x100762fe7 GLRendererFloat ??? (???) <684EBDC4-63B4-BC55-60EF-0F6A7D666551> /System/Library/Frameworks/OpenGL.framework/Resources/GLRendererFloat.bundle/GLRendererFloat
0x112b59000 - 0x112ce6fe7 GLEngine ??? (???) <85971DA9-5140-A226-7898-21B2D6C6F7FE> /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
0x112d17000 - 0x113139ff7 libclh.dylib 3.1.1 C (3.1.1) <08830748-80A3-2928-BDC9-D5512BE2715C> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
0x200000000 - 0x2006c3fe7 com.apple.GeForceGLDriver 1.6.10 (6.1.0) <8946B71C-EA96-5AFA-B8B6-E9029EAF56CD> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B633F790-4DDB-53CD-7ACF-2A3682BCEA9F> /usr/lib/dyld
Now, when I compile, install GLEW 1.5.3 and run glewinfo, I am rather surprised to see that glGenTexturesEXT does not seem to be available :
./glewinfo | grep -i glgentexture
glGenTexturesEXT: MISSING
As a matter of fact, the Segmentation fault occurs when calling glGenTextures for the first time. And yes, I called glutinit and glewinit before
Also, glGenTextureEXT is not the only extension that is missing, they pretty much all are…
I just do not understand what’s going on… I know that my video card supports OpenGL 2.0 and glewinfo finds glGenTexturesEXT under Linux. As I already said it, everything used to work fine under Leopard ! I did not change the code… Could it be the latest Mac OSX OpenGL drivers ?
Does it mean that GLEW tries to bind with GLUT, and Snow Leopard has a problem with GLUT ?
Man, I would be so glad to have a short explanation of what’s going on here !
Thank you in advance,
StratBoy61