<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 7, 2013 at 5:42 PM, Burlen Loring <span dir="ltr"><<a href="mailto:bloring@lbl.gov" target="_blank">bloring@lbl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11/07/2013 09:31 AM, Alexander Monakov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Thu, 7 Nov 2013, Burlen Loring wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I tried to use apitrace with a debug build of mesa today and it segv'd.<br>
However it works fine when used with the system installed ATI drivers. With<br>
the mesa build I tried setting LD_PRELOAD and LD_LIBRARY_PATH to no avail. Any<br>
ideas what am I doing wrong?<br>
</blockquote>
No. Many people use apitrace with Mesa, including debug builds. Try showing<br>
your exact command line and backtrace from gdb. Details on how you configured<br>
Mesa might also help.<br>
<br>
Alexander<br>
</blockquote></div>
Alexandr, thanks for trying to help, here are details you asked about.<br>
<br>
my mesa conig:<br>
./configure CXXFLAGS="-O2 -g" CFLAGS="-O2 -g" --disable-xvmc --disable-glx --disable-dri --with-dri-drivers= --with-gallium-drivers= --enable-texture-float --disable-shared-glapi --disable-egl --with-egl-platforms= --enable-osmesa --with-osmesa-bits=32 --enable-gallium-llvm=no --prefix=/work/apps/mesa/<u></u>devel/classic<br>
<br>
how I ran apitrace<br>
LD_PRELOAD=/work/apps/mesa/<u></u>devel/classic/lib/libOSMesa32.<u></u>so /work/apps/apitrace/devel/bin/<u></u>apitrace trace --output=mesa-line-trace /work/VTK/vtk-mesa-dev/bin/<u></u>vtkChartsCoreCxxTests "TestPieChart" "-D" "/work/VTK/vtk-mesa-dev/<u></u>ExternalData/Testing" "-T" "/work/VTK/vtk-mesa-dev/<u></u>Testing/Temporary" "-V" "/work/VTK/vtk-mesa-dev/<u></u>ExternalData/Charts/Core/<u></u>Testing/Data/Baseline/<u></u>TestPieChart.png"</blockquote>
<div><br></div><div>I strongly suspect that the problem is the LD_PRELOAD will interfere with a apitrace, as apitrace too, uses LD_PRELOAD to do its thing. I think think this will ever work.</div><div><br></div><div>If you want to trace Mesa, I suggest you build the pure XLIB libGL.so sw rasterizer, and then use LD_LIBRARY_PATH=... . This works -- I use it very often.</div>
<div><br></div><div>Jose <br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
apitrace: loaded<br>
apitrace: tracing to mesa-line-trace<br>
osmesa_choose_line_function<br>
<br>
==============================<u></u>===========================<br>
Process id 15522 Caught SIGSEGV at 0x0 address not mapped to object<br>
Program Stack:<br>
0x36eb635a90 : ??? [(???) ???:-1]<br>
0x7fc71e5ee117 : ??? [(???) ???:-1]<br>
0x7fc71e5e9566 : vtkPixelBufferObject::<u></u>Upload3D(int, void*, unsigned int*, int, long long*, int, int*) [(libvtkRenderingOpenGL-6.1.<u></u>so.1) ???:-1]<br>
0x7fc71e5e540a : ??? [(???) ???:-1]<br>
0x7fc71e5e1594 : vtkOpenGLTexture::Load(<u></u>vtkRenderer*) [(libvtkRenderingOpenGL-6.1.<u></u>so.1) ???:-1]<br>
0x7fc71fa8e291 : vtkTexture::Render(<u></u>vtkRenderer*) [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x7fc71fdba0b4 : vtkOpenGLContextDevice2D::<u></u>DrawString(float*, vtkUnicodeString const&) [(libvtkRenderingContext2D-6.<u></u>1.so.1) ???:-1]<br>
0x7fc71fdb9e20 : vtkOpenGLContextDevice2D::<u></u>DrawString(float*, vtkStdString const&) [(libvtkRenderingContext2D-6.<u></u>1.so.1) ???:-1]<br>
0x7fc71fd9f1df : vtkContext2D::DrawString(<u></u>float, float, vtkStdString const&) [(libvtkRenderingContext2D-6.<u></u>1.so.1) ???:-1]<br>
0x7fc723fa312a : vtkChartLegend::Paint(<u></u>vtkContext2D*) [(libvtkChartsCore-6.1.so.1) ???:-1]<br>
0x7fc71fd97944 : ??? [(???) ???:-1]<br>
0x7fc71fd968d1 : vtkAbstractContextItem::<u></u>PaintChildren(vtkContext2D*) [(libvtkRenderingContext2D-6.<u></u>1.so.1) ???:-1]<br>
0x7fc723faee0b : vtkChartPie::Paint(<u></u>vtkContext2D*) [(libvtkChartsCore-6.1.so.1) ???:-1]<br>
0x7fc71fd97944 : ??? [(???) ???:-1]<br>
0x7fc71fda9690 : vtkContextScene::Paint(<u></u>vtkContext2D*) [(libvtkRenderingContext2D-6.<u></u>1.so.1) ???:-1]<br>
0x7fc71fda2a6c : vtkContextActor::<u></u>RenderOverlay(vtkViewport*) [(libvtkRenderingContext2D-6.<u></u>1.so.1) ???:-1]<br>
0x7fc71fa5e18b : vtkRenderer::UpdateGeometry() [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x7fc71e5c4cc6 : vtkOpenGLRenderer::<u></u>DeviceRender() [(libvtkRenderingOpenGL-6.1.<u></u>so.1) ???:-1]<br>
0x7fc71fa5d3ba : vtkRenderer::Render() [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x7fc71fa5ba75 : vtkRendererCollection::Render(<u></u>) [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x7fc71fa712f0 : vtkRenderWindow::<u></u>DoStereoRender() [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x7fc71fa711f5 : vtkRenderWindow::DoFDRender() [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x7fc71fa70bc8 : vtkRenderWindow::DoAARender() [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x7fc71fa701ab : vtkRenderWindow::Render() [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x7fc71fa7cd39 : vtkRenderWindowInteractor::<u></u>Render() [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x7fc71fa7e8fd : vtkRenderWindowInteractor::<u></u>Initialize() [(<a href="http://libvtkRenderingCore-6.1.so" target="_blank">libvtkRenderingCore-6.1.so</a>.<u></u>1) ???:-1]<br>
0x43867e : TestPieChart(int, char**) [(vtkChartsCoreCxxTests) ???:-1]<br>
0x41a746 : main [(vtkChartsCoreCxxTests) ???:-1]<br>
0x36eb621b75 : __libc_start_main [(libc.so.6) ???:-1]<br>
0x419e89 : ??? [(???) ???:-1]<br>
==============================<u></u>===========================<br>
<br>
apitrace: warning: caught signal 6<br>
apitrace: flushing trace due to an exception<br>
/work/apps/apitrace/devel/bin/<u></u>../lib/apitrace/wrappers/<u></u>glxtrace.so+0x192427<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org" target="_blank">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/apitrace</a><br>
</div></div></blockquote></div><br></div></div>