<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 7, 2013 at 6:22 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 text="#000000" bgcolor="#FFFFFF"><div class="im">
    <div>On 11/07/2013 10:02 AM, José Fonseca
      wrote:<br>
    </div>
    <blockquote type="cite">
      <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>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/devel/classic<br>
              <br>
              how I ran apitrace<br>
              LD_PRELOAD=/work/apps/mesa/devel/classic/lib/libOSMesa32.so
              /work/apps/apitrace/devel/bin/apitrace trace
              --output=mesa-line-trace /work/VTK/vtk-mesa-dev/bin/vtkChartsCoreCxxTests
              "TestPieChart" "-D" "/work/VTK/vtk-mesa-dev/ExternalData/Testing"
              "-T" "/work/VTK/vtk-mesa-dev/Testing/Temporary" "-V"
              "/work/VTK/vtk-mesa-dev/ExternalData/Charts/Core/Testing/Data/Baseline/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>
      </div>
    </blockquote>
    <br></div>
    Hi Jose, Thanks for trying to help. With/without LD_PRELOAD the
    result is the same. I'm working on a parallel rendering application
    for use on systems that do not run X11, and thus I don't built mesa
    with any X11 features. Is X11 a requirement for apitrace?<br></div></blockquote><div><br></div><div>On Linux X11 is a requirement when tracing with `apitrace trace --api=gl`.  EGL is a requirement when tracing with --api=egl. We don't support anything else on unices -- let's say that apitrace is not "window API agnostic" -- it needs to know windows specfic things like GL contexts etc.</div>
<div><br></div><div>Jose</div></div></div></div>