<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - segfault in _mesa_get_format_datatype and _mesa_get_color_read_type when state dumping with glretrace"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=65173">65173</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>segfault in _mesa_get_format_datatype and _mesa_get_color_read_type when state dumping with glretrace
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vrodic@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=80036" name="attach_80036" title="fix">attachment 80036</a> <a href="attachment.cgi?id=80036&action=edit" title="fix">[details]</a></span>
fix

when using glretrace to dump the GL state, sometimes
_mesa_get_color_read_format and _mesa_get_color_read_type can access
uninitialized ctx->ReadBuffer->_ColorReadBuffer

To reproduce run:

glretrace -D 137078 wine-preloader.137078.trace

trace file is here: 
<a href="http://mjesec.ffzg.hr/~vrodic/dota/wine-preloader.137078.trim.trace.bz2">http://mjesec.ffzg.hr/~vrodic/dota/wine-preloader.137078.trim.trace.bz2</a>

I've attached a sample patch to fix the bug (probably incorrect) and a gdb
backtrace .</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>