<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 - Segfault in intel_mipmap_tree.c:2571 calling glReadPixels from mpv on wayland"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91848">91848</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segfault in intel_mipmap_tree.c:2571 calling glReadPixels from mpv on wayland
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>normal
          </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>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kevmitch@gmail.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=118048" name="attach_118048" title="gdb -ex run --no-config --force-window --idle --msg-level=all=trace build/mpv">attachment 118048</a> <a href="attachment.cgi?id=118048&action=edit" title="gdb -ex run --no-config --force-window --idle --msg-level=all=trace build/mpv">[details]</a></span>
gdb -ex run --no-config --force-window --idle --msg-level=all=trace build/mpv

When taking a "window" screenshot in mpv (Ctrl+S), which reads the image
directly from the framebuffer using glReadPixels on wayland, I get the attached
backtrace which terminates at

intel_miptree_attach_map (mode=1, h=1, w=960, y=0, x=0, slice=0, level=0,
mt=0x0) at
../../../../../../../src/mesa/drivers/dri/i965/intel_mipmap_tree.c:2571

This works fine on X11.

Chipset: moble IvyBridge
mesa:4de86e1371b0d59a5b9a787b726be3d373024647
mpv: a8e6de90fee1699c5de89eb1ae2182ceb096a65b
linux: 4.1.4</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>