Bug 87926

Summary: [softpipe] SIGSEGV draw/draw_pt_fetch_shade_pipeline.c:161
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Drivers/Gallium/softpipeAssignee: mesa-dev
Status: RESOLVED MOVED QA Contact:
Severity: critical    
Priority: medium CC: sroland
Version: 10.5Keywords: have-backtrace
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
i915 platform: i915 features:

Description Vinson Lee 2015-01-01 02:56:37 UTC
mesa: c633528cbac007a73a066f269b3c9a25daf1e21a (master 10.5.0-devel)

Run piglit gl-3.1-vao-broken-attrib on softpipe.

(gdb) bt
#0  0x00007f4b617c2036 in ?? ()
#1  0x00007fff9f9820c0 in ?? ()
#2  0x00000000023e0d60 in ?? ()
#3  0x00007f4b63ea4e8d in fetch (output=<optimized out>, fetch_info=<optimized out>, fetch=
    {void (char *, const struct draw_fetch_info *, struct pt_fetch *)} 0x7f4b63ea4dd2 <fetch_pipeline_generic+146>) at draw/draw_pt_fetch_shade_pipeline.c:161
#4  fetch_pipeline_generic (middle=0x2493450, fetch_info=0x0, fetch_info@entry=0x7fff9f9820a0, in_prim_info=0x3) at draw/draw_pt_fetch_shade_pipeline.c:268
#5  0x00007f4b63ea53c6 in fetch_pipeline_linear_run (middle=<optimized out>, start=<optimized out>, count=3, prim_flags=<optimized out>) at draw/draw_pt_fetch_shade_pipeline.c:416
#6  0x00007f4b63eaace9 in vsplit_segment_simple_linear (vsplit=0x23d9430, vsplit=0x23d9430, icount=3, istart=0, flags=0) at draw/draw_pt_vsplit_tmp.h:240
#7  vsplit_run_linear (frontend=0x23d9430, start=0, count=3) at draw/draw_split_tmp.h:60
#8  0x00007f4b63ea22f5 in draw_pt_arrays (draw=draw@entry=0x23e0d60, prim=4, start=0, count=count@entry=3) at draw/draw_pt.c:149
#9  0x00007f4b63ea2923 in draw_vbo (draw=draw@entry=0x23e0d60, info=0x7fff9f9821f0, info@entry=0x7fff9f9822f0) at draw/draw_pt.c:564
#10 0x00007f4b63f44b5a in softpipe_draw_vbo (pipe=0x23e55a0, info=0x7fff9f9822f0) at sp_draw_arrays.c:147
#11 0x00007f4b63da7e00 in st_draw_vbo (ctx=<optimized out>, prims=<optimized out>, nr_prims=<optimized out>, ib=0x0, index_bounds_valid=<optimized out>, min_index=0, max_index=2, 
    tfb_vertcount=0x0, indirect=0x0) at ../../src/mesa/state_tracker/st_draw.c:285
#12 0x00007f4b63d73dff in vbo_draw_arrays (ctx=0x7f4b68ef3010, mode=4, start=0, count=3, numInstances=1, baseInstance=0) at ../../src/mesa/vbo/vbo_exec_array.c:643
#13 0x00007f4b689f6212 in stub_glDrawArrays (mode=4, first=0, count=3) at piglit/tests/util/piglit-dispatch-gen.c:11317
#14 0x0000000000400d6a in piglit_init (argc=1, argv=0x7fff9f982628) at piglit/tests/spec/gl-3.1/vao-broken-attrib.c:71
#15 0x00007f4b68a7f338 in run_test (gl_fw=0x7f4b68cf7a80 <glut_fw>, argc=1, argv=0x7fff9f982628)
    at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:165
#16 0x00007f4b68a65a66 in piglit_gl_test_run (argc=1, argv=0x7fff9f982628, config=0x7fff9f9824f0) at piglit/tests/util/piglit-framework-gl.c:151
#17 0x0000000000400cce in main (argc=1, argv=0x7fff9f982628) at piglit/tests/spec/gl-3.1/vao-broken-attrib.c:45
Comment 1 Roland Scheidegger 2015-01-05 17:23:26 UTC
Hmm I guess we'd need to drop the draw call somewhere (since results are unspecified). Not sure where the optimal place to do it is. Or invoke out-of-bounds behavior somewhere else. I think llvmpipe (which we care about a lot more than softpipe in general) already does this.
Comment 2 Vinson Lee 2017-10-06 23:25:57 UTC
mesa: 52b73caaf40e79c90a105ec6d349abb3398e3c6b (master 17.3.0-devel)

gl-3.1-vao-broken-attrib still crashes on softpipe.
Comment 3 GitLab Migration User 2019-09-18 18:27:47 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/212.

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.