https://bugs.freedesktop.org/show_bug.cgi?id=95266

--- Comment #10 from Jose Fonseca <jfons...@vmware.com> ---
(In reply to Jose Fonseca from comment #8)
> It looks like apitrace is about to enter an infinite loop: the address of
> the supposedly "real" glXCreateContextAttribsARB function is actually
> pointing to the fake glXCreateContextAttribsARB wrapper function.
> 
> I'll take a look.  Thanks for trying.
> 
> 
> It looks like doing `MESA_GL_VERSION_OVERRIDE=4.5 glretrace -S frame
> vtkRenderingOpenGL2CxxTests.4075.trim.trace` works.

I suspect problem is that you're loading Mesa libGL.so via LD_PRELOAD. From
attached mesa_bug.tar.bz2:

  $ cat run-mesa.sh 
  #!/bin/bash

  echo "Running test against mesa libGL."
  LD_PRELOAD=libGL.so ./vtkRenderingCoreCxxTests
"TestTranslucentLUTDepthPeeling" -I

This will defintely interfere with apitrace since apitrace needs to use
LD_PRELOAD to inject.

The proper way of using a custom libGL.so is to simply set LD_LIBRARY_PATH to
the directory that has it:

  ln -sf libGL.so libGL.so,1
  LD_LIBRARY_PATH=$PWD ./vtkRenderingCoreCxxTests
"TestTranslucentLUTDepthPeeling" -I

and all should work fine.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to