Mesa 7.11.2 Segmentation fault

Eduard Deines <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <CAEjvyBcpAw4YLcpia5hSuti0jTWa47GkyKWt2t+EhC=45nRyuw@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.