Bug 103455 - piglit.spec.!opengl 1_1.masked-clear crashes
Summary: piglit.spec.!opengl 1_1.masked-clear crashes
Status: NEW
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
Depends on:
Reported: 2017-10-25 16:40 UTC by Mark Janes
Modified: 2017-10-25 18:11 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Note You need to log in before you can comment on or make changes to this bug.
Description Mark Janes 2017-10-25 16:40:23 UTC
Bisected to:
Author:     Brian Paul <brianp@vmware.com>
util: don't use fbo if test_config->requires_displayed_window is true

If the test is configured with config.requires_displayed_window = true
we shouldn't create an fbo if the -fbo option is given.

Fixes "drawbuffer-modes -auto -fbo" failure, for example.

Reviewed-by: Eric Anholt <eric@anholt.net>

/tmp/build_root/m64/lib/piglit/bin/masked-clear -auto -fbo
<crashes with no assertion or output>

This is running with -p gbm
Comment 1 Brian Paul 2017-10-25 17:02:00 UTC
You see the test running the test manually?  Can you debug this a bit further?
I have no experience with -p gbm.
Comment 2 Mark Janes 2017-10-25 17:44:54 UTC
This only crashes with gbm:

> PIGLIT_PLATFORM=gbm gdb /tmp/build_root/m64/lib/piglit/bin/masked-clear
(gdb) set args  -auto -fbo
(gdb) run
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1959de0 in do_single_blorp_clear () from /tmp/build_root/m64/lib/dri/i965_dri.so
(gdb) bt
#0  0x00007ffff1959de0 in do_single_blorp_clear () from /tmp/build_root/m64/lib/dri/i965_dri.so
#1  0x00007ffff195c060 in brw_blorp_clear_color () from /tmp/build_root/m64/lib/dri/i965_dri.so
#2  0x00007ffff195ed8c in brw_clear () from /tmp/build_root/m64/lib/dri/i965_dri.so
#3  0x00007ffff7a94d32 in stub_glClear (mask=16384) at tests/util/piglit-dispatch-gen.c:3907
#4  0x0000555555555483 in test_color_masking (buffer=1028) at ../tests/general/masked-clear.c:109
#5  0x00005555555557ec in piglit_display () at ../tests/general/masked-clear.c:222
#6  0x00007ffff7b35e4c in enter_event_loop (winsys_fw=0x555555769c20) at ../tests/util/piglit-framework-gl/piglit_gbm_framework.c:42
#7  0x00007ffff7b35681 in run_test (gl_fw=0x555555769c20, argc=1, argv=0x7fffffffe778)
    at ../tests/util/piglit-framework-gl/piglit_winsys_framework.c:88
#8  0x00007ffff7b19e1d in piglit_gl_test_run (argc=1, argv=0x7fffffffe778, config=0x7fffffffe630)
    at ../tests/util/piglit-framework-gl.c:223
#9  0x00005555555551a5 in main (argc=1, argv=0x7fffffffe778) at ../tests/general/masked-clear.c:44
Comment 3 Brian Paul 2017-10-25 17:55:21 UTC
Perhaps this is a newly exposed bug in the i965 driver.  I suggest a debug build and gdb.
Comment 4 Mark Janes 2017-10-25 18:11:07 UTC
Assigning to Mesa.  The bisection was to a piglit commit that looks to have exposed a mesa bug.

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.