[Mesa-users] Mesa 7.11.2 Segmentation fault

Eduard Deines eddeines at gmail.com
Tue Jan 17 13:54:50 PST 2012


Hello,

I'm in the process to update our mesa version from 7.6 to 7.11. I have
successfully compiled mesa 7.11 on a linux 64 bit machine with the
following configuration:

    /configure --prefix=install_dir --with-driver=xlib --disable-gles1
--disable-gles2 --without-gallium-drivers --disable-glu --disable-glut
--disable-glw --disable-egl

I'm using mesa with VTK. When I do offscreen rendering in VTK using
osmesa my program crashes. I've used gdb to find the position in the
code where it crashes. I run the gdb with no success. I also ran
valgrind and got the following output:

Mesa: Initializing x86-64 optimizations
==9528== Invalid read of size 8
==9528==    at 0xAEE6DB7: glMatrixMode (glapi_x86-64.S:10535)
==9528==    by 0x4F6EF22:
vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int)
(vtkXOpenGLRenderWindow.cxx:1010)
==9528==    by 0x4F6F424: vtkXOpenGLRenderWindow::Initialize()
(vtkXOpenGLRenderWindow.cxx:1142)
==9528==    by 0x4F6F81A: vtkXOpenGLRenderWindow::Start()
(vtkXOpenGLRenderWindow.cxx:1261)
==9528==    by 0x4E383D2: vtkRenderWindow::DoStereoRender()
(vtkRenderWindow.cxx:656)
==9528==    by 0x4E383AA: vtkRenderWindow::DoFDRender()
(vtkRenderWindow.cxx:645)
==9528==    by 0x4E37E4A: vtkRenderWindow::DoAARender()
(vtkRenderWindow.cxx:537)
==9528==    by 0x4E37413: vtkRenderWindow::Render() (vtkRenderWindow.cxx:362)
==9528==    by 0x4F7210C: vtkXOpenGLRenderWindow::Render()
(vtkXOpenGLRenderWindow.cxx:1877)
==9528==    by 0x403E99: main (mesa_test.cxx:228)
==9528==  Address 0xee568d8 is not stack'd, malloc'd or (recently) free'd


Am I using the wrong configuration parameters? Did I miss any
configuration parameter?
Is this a problem of the assembly code in mesa? If I turn the assembly
off (--disable-asm) the program does not crash but there is also
nothing rendered.
I assume glapi is needed by mesa?

Thanks in advance for your help!

Eduard


More information about the mesa-users mailing list