<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_CLOSED  bz_closed"
   title="CLOSED NOTOURBUG - i965/valgrind + glxgears = More than 10000000 total errors detected"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77863#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_CLOSED  bz_closed"
   title="CLOSED NOTOURBUG - i965/valgrind + glxgears = More than 10000000 total errors detected"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77863">bug 77863</a>
              from <span class="vcard"><a class="email" href="mailto:austinenglish@gmail.com" title="Austin English <austinenglish@gmail.com>"> <span class="fn">Austin English</span></a>
</span></b>
        <pre>(In reply to Kenneth Graunke from <a href="show_bug.cgi?id=77863#c4">comment #4</a>)
<span class="quote">> Recompiling the valgrind package, you mean?

> Are you closing glxgears by hitting Ctrl+C in the terminal or clicking the
> [X] button in the window titlebar?  Both of those simply kill the
> application - it does not call glXDestroyContext.  So everything it ever did
> with OpenGL leaks.

> If you close it by pressing the Escape key, then it will quit gracefully,
> calling glXDestroyContext.  With DRI2, I get no leaks at all.  (DRI3
> apparently has a few small leaks.)</span >

Thanks for clarifying. Indeed, using escape shows no leaks.

I do get one valrind issue, in the driver:
==32457== Syscall param ioctl(generic) points to uninitialised byte(s)
==32457==    at 0x34E72F6407: ioctl (in /usr/lib64/libc-2.20.so)
==32457==    by 0x34F02036C7: drmIoctl (in /usr/lib64/libdrm.so.2.4.0)
==32457==    by 0x34F02061FB: drmPrimeHandleToFD (in
/usr/lib64/libdrm.so.2.4.0)
==32457==    by 0x57B561D: drm_intel_bo_gem_export_to_prime (in
/usr/lib64/libdrm_intel.so.1.0.0)
==32457==    by 0x5340807: ??? (in /usr/lib64/dri/i965_dri.so)
==32457==    by 0x34F2A4E53D: ??? (in /usr/lib64/libGL.so.1.2.0)
==32457==    by 0x34F2A4F389: ??? (in /usr/lib64/libGL.so.1.2.0)
==32457==    by 0x535DE96: ??? (in /usr/lib64/dri/i965_dri.so)
==32457==    by 0x535E1C4: ??? (in /usr/lib64/dri/i965_dri.so)
==32457==    by 0x535E316: ??? (in /usr/lib64/dri/i965_dri.so)
==32457==    by 0x52FEE95: ??? (in /usr/lib64/dri/i965_dri.so)
==32457==    by 0x34F2A4D979: ??? (in /usr/lib64/libGL.so.1.2.0)
==32457==  Address 0xffefff958 is on thread 1's stack
==32457==  in frame #2, created by drmPrimeHandleToFD (???:)
==32457==</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>