<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 on glClear when running in fullscreen mode on GNOME"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85456">85456</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segfault on glClear when running in fullscreen mode on GNOME
          </td>
        </tr>

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

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

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

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When I run MPV in fullscreen mode it sometimes crashes with the following
output:

Failed to open BO for returned DRI2 buffer (1366x768, dri2 back buffer, named
29).
This is likely a bug in the X Server that will lead to a crash soon.
Segmentation fault (core dumped)

On occasion, it will crash GNOME as well ("Oh, no! Something has gone wrong. 
problem has occured and the system can't recover. All extensions have been
disabled as a precaution. [Log Out]") The issue has already been described on
their bug tracker here: <a href="https://github.com/mpv-player/mpv/issues/1177">https://github.com/mpv-player/mpv/issues/1177</a>. However,
it isn't actually just limited to this one program, I've encountered the same
thing in my own GLX/OpenGL code whenever I enable _NET_WM_STATE_FULLSCREEN.

I'm running Debian Jessie with Mesa 10.2.8 on an Intel i5-3230M CPU.

GDB Backtrace
--------------
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f86de1a9892 in brw_blorp_mip_info::set (this=0x7f86df026b38, 
    mt=0x0, level=0, layer=0)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_blorp.cpp:71
71    ../../../../../../../src/mesa/drivers/dri/i965/brw_blorp.cpp: No such
file or directory.
(gdb) bt
#0  0x00007f86de1a9892 in brw_blorp_mip_info::set (this=0x7f86df026b38, 
    mt=0x0, level=0, layer=0)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_blorp.cpp:71
#1  0x00007f86de1a9903 in brw_blorp_surface_info::set (
    this=this@entry=0x7f86df026b38, brw=brw@entry=0x7f86d87de948, mt=0x0, 
    level=<optimized out>, layer=layer@entry=0, 
    is_render_target=is_render_target@entry=true)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_blorp.cpp:83
#2  0x00007f86de1b5fb5 in brw_blorp_clear_params::brw_blorp_clear_params (
    this=0x7f86df026ac0, brw=0x7f86d87de948, fb=0x7f86d85ee7c0, 
    rb=0x7f86d85eecd0, 
    color_mask=0x7f86d87e0130 '\377' <repeats 32 times>, "\005\004", 
    partial_clear=<optimized out>, layer=0)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_blorp_clear.cpp:191
#3  0x00007f86de1b69d4 in do_single_blorp_clear (brw=0x7f86d87de948, fb=0x0, 
    fb@entry=0x7f86d85ee7c0, rb=0x0, rb@entry=0x7f86d85eecd0, buf=buf@entry=0, 
    partial_clear=partial_clear@entry=false, layer=1)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_blorp_clear.cpp:505
#4  0x00007f86de1b6d3f in brw_blorp_clear_color (brw=brw@entry=0x7f86d87de948, 
    fb=fb@entry=0x7f86d85ee7c0, mask=mask@entry=2, 
    partial_clear=partial_clear@entry=false)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_blorp_clear.cpp:601
#5  0x00007f86de1b8368 in brw_clear (ctx=0x7f86d87de948, mask=2)
---Type <return> to continue, or q <return> to quit---
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_clear.c:247
#6  0x00000000004a1426 in gl_video_render_frame (p=0x7f86d85f1d50)
    at ../video/out/gl_video.c:1614
#7  0x00000000004a6104 in draw_image (vo=<optimized out>, mpi=0x17cb1d0)
    at ../video/out/vo_opengl.c:167
#8  0x00000000004a42e1 in render_frame (vo=0x13a0f40) at ../video/out/vo.c:582
#9  vo_thread (ptr=0x13a0f40) at ../video/out/vo.c:682
#10 0x00007f86eb5950a4 in start_thread (arg=0x7f86df027700)
    at pthread_create.c:309
#11 0x00007f86eb2cac2d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) f 6
#6  0x00000000004a1426 in gl_video_render_frame (p=0x7f86d85f1d50)
    at ../video/out/gl_video.c:1614
1614            gl->Clear(GL_COLOR_BUFFER_BIT);</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>