<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Version 18.1] Memory leak when frequently create shaders on ubuntu/Linux"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104887">104887</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Version 18.1] Memory leak when frequently create shaders on ubuntu/Linux
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>94389147@qq.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=137091" name="attach_137091" title="including opengl_demo.zip valgrind.result glxinfo.txt">attachment 137091</a> <a href="attachment.cgi?id=137091&action=edit" title="including opengl_demo.zip valgrind.result glxinfo.txt">[details]</a></span>
including opengl_demo.zip valgrind.result glxinfo.txt

Hi all,
   I ran a test program in ubuntu 16.04, mesa 18.1. Please see attached
glxinfo.txt for system information and opengl_demo.zip for test program.

   The test program use create simple shader 10 times. Using valgrind as
following 'valgrind --tool=memcheck --leak-check=yes --show-reachable=yes
--num-callers=20 --track-fds=yes ./es2tri', it easy to get a memory leak report
as in attachement.

==24757== LEAK SUMMARY:
==24757==    definitely lost: 144 bytes in 2 blocks
==24757==    indirectly lost: 8,000 bytes in 40 blocks
==24757==      possibly lost: 1,460,261 bytes in 4,429 blocks
==24757==    still reachable: 165,485 bytes in 115 blocks
==24757==         suppressed: 0 bytes in 0 blocks</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>