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:
#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 ()
#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)
#11 0x00005555557a90d2 in vo_render_frame_external (vo=vo@entry=0x555557462190)
#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.
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)
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.
(Based on your comment in bug 104214.)
*** This bug has been marked as a duplicate of bug 104214 ***