<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 - mpv segfaults in brw_bo_unreference () at /usr/lib/xorg/modules/dri/i965_dri.so when spamming fullscreen key"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104301">104301</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>mpv segfaults in brw_bo_unreference () at /usr/lib/xorg/modules/dri/i965_dri.so when spamming fullscreen key
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>17.3
          </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>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>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>fdbugs@fratti.ch
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - mpv segfaults in brw_bo_unreference () at /usr/lib/xorg/modules/dri/i965_dri.so when spamming fullscreen key"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104301#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - mpv segfaults in brw_bo_unreference () at /usr/lib/xorg/modules/dri/i965_dri.so when spamming fullscreen key"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104301">bug 104301</a>
              from <span class="vcard"><a class="email" href="mailto:fdbugs@fratti.ch" title="fdbugs@fratti.ch">fdbugs@fratti.ch</a>
</span></b>
        <pre>I've done some further testing and this seems to only crash reliably when
playing back 60 fps content; this seems to imply a race condition of some sort
that's more likely to lead to a crash in mesa the higher mpv's framerate is.</pre>
        </div>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - mpv segfaults in brw_bo_unreference () at /usr/lib/xorg/modules/dri/i965_dri.so when spamming fullscreen key"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104301#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - mpv segfaults in brw_bo_unreference () at /usr/lib/xorg/modules/dri/i965_dri.so when spamming fullscreen key"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104301">bug 104301</a>
              from <span class="vcard"><a class="email" href="mailto:fdbugs@fratti.ch" title="fdbugs@fratti.ch">fdbugs@fratti.ch</a>
</span></b>
        <pre>Correction: I'm not sure if it's a Skylake. It's whatever the Intel(R) Core(TM)
i7-7500U is. (So 7th Gen, I guess)</pre>
        </div>
        <div>
        <pre>When I watch a video with mpv (git HEAD) on mesa 17.3.0, and spam the
fullscreen key, I get a segfault with the following backtrace:

(gdb) bt
#0  0x00007fff9bce2f73 in brw_bo_unreference () at
/usr/lib/xorg/modules/dri/i965_dri.so
#1  0x00007fff9bd1401d in intel_destroy_image () at
/usr/lib/xorg/modules/dri/i965_dri.so
#2  0x00007fff9aea5365 in dri3_free_render_buffer.isra () at
/usr/lib/libEGL_mesa.so.0
#3  0x00007fff9aea62e9 in dri3_get_buffer.isra () at /usr/lib/libEGL_mesa.so.0
#4  0x00007fff9aea6e90 in loader_dri3_get_buffers () at
/usr/lib/libEGL_mesa.so.0
#5  0x00007fff9bce8fd6 in intel_update_renderbuffers ()
    at /usr/lib/xorg/modules/dri/i965_dri.so
#6  0x00007fff9bce9301 in intel_prepare_render () at
/usr/lib/xorg/modules/dri/i965_dri.so
#7  0x00007fff9bce4c9c in brw_clear () at /usr/lib/xorg/modules/dri/i965_dri.so
#8  0x000055555579e9cd in gl_clear (ra=<optimized out>, dst=<optimized out>,
color=0x7fffbdffa3c0, scissor=0x7fffbdffa380) at
../video/out/opengl/ra_gl.c:636
#9  0x000055555579928d in gl_video_render_frame (p=0x7fffac64ff60,
frame=frame@entry=0x5555575e0460, fbo=...) at ../video/out/gpu/video.c:3016
#10 0x00005555557ac5e5 in draw_frame (vo=0x555557462190, frame=0x5555575e0460)
    at ../video/out/vo_gpu.c:87
#11 0x00005555557a90d2 in vo_render_frame_external (vo=vo@entry=0x555557462190)
    at ../video/out/vo.c:870
#12 0x00005555557a9978 in vo_thread (ptr=0x555557462190) at
../video/out/vo.c:1016
#13 0x00007fffefeba08a in start_thread () at /usr/lib/libpthread.so.0
#14 0x00007ffff06e142f in clone () at /usr/lib/libc.so.6

mpv configuration doesn't appear to matter, since it also happens with
--no-config.

Using a Skylake.</pre>
        </div>
      </p>


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

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