Bug 85456 - Segfault on glClear when running in fullscreen mode on GNOME
Summary: Segfault on glClear when running in fullscreen mode on GNOME
Status: RESOLVED DUPLICATE of bug 84372
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 10.2
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-25 20:50 UTC by Jonathan
Modified: 2014-11-01 15:57 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Jonathan 2014-10-25 20:50:14 UTC
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: https://github.com/mpv-player/mpv/issues/1177. 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);
Comment 1 Jonathan 2014-11-01 03:51:19 UTC

*** This bug has been marked as a duplicate of bug 84372 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.