Bug 79472

Summary: [llvmpipe] [softpipe] SIGSEGV src/gallium/auxiliary/draw/draw_cliptest_tmp.h:91
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium Keywords: have-backtrace
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2014-05-31 06:10:51 UTC
mesa: 83bba8f14603022c6c80bef95020e079d7cb73c0 (master 10.3.0-devel)

Run piglit clip-distance-out-values on llvmpipe.

$ ./bin/shader_runner tests/spec/glsl-1.50/execution/geometry/clip-distance-out-values.shader_test -auto
Segmentation fault (core dumped)

(gdb) bt
#0  0x00007fb187cb25d9 in do_cliptest_xy_fullz_user_viewport (pvs=0x165dce0, info=0x7fff08c97e80, prim_info=0x7fff08c97ec0)
    at src/gallium/auxiliary/draw/draw_cliptest_tmp.h:91
#1  0x00007fb187cb3e10 in draw_pt_post_vs_run (pvs=0x165dce0, info=0x7fff08c97e80, prim_info=0x7fff08c97ec0)
    at src/gallium/auxiliary/draw/draw_pt_post_vs.c:123
#2  0x00007fb187d7adbf in llvm_pipeline_generic (middle=0x165dbb0, fetch_info=0x0, in_prim_info=0x7fff08c97fa0)
    at src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c:456
#3  0x00007fb187d7af95 in llvm_middle_end_linear_run (middle=0x165dbb0, start=0, count=1, prim_flags=0)
    at src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c:532
#4  0x00007fb187cb6f71 in vsplit_segment_simple_linear (vsplit=0x165ad60, flags=0, istart=0, icount=1)
    at src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h:240
#5  0x00007fb187cb7268 in vsplit_run_linear (frontend=0x165ad60, start=0, count=1) at src/gallium/auxiliary/draw/draw_split_tmp.h:60
#6  0x00007fb187cab18b in draw_pt_arrays (draw=0x164bb30, prim=0, start=0, count=1) at src/gallium/auxiliary/draw/draw_pt.c:149
#7  0x00007fb187cabff0 in draw_vbo (draw=0x164bb30, info=0x7fff08c98100) at src/gallium/auxiliary/draw/draw_pt.c:564
#8  0x00007fb1878f2fb1 in llvmpipe_draw_vbo (pipe=0x1649f50, info=0x7fff08c98250) at src/gallium/drivers/llvmpipe/lp_draw_arrays.c:126
#9  0x00007fb187c8fea3 in cso_draw_vbo (cso=0x16dda70, info=0x7fff08c98250) at src/gallium/auxiliary/cso_cache/cso_context.c:1428
#10 0x00007fb187a9de6b in st_draw_vbo (ctx=0x7fb18b112010, prims=0x7fff08c98320, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, 
    max_index=0, tfb_vertcount=0x0, indirect=0x0) at src/mesa/state_tracker/st_draw.c:276
#11 0x00007fb187b76c0b in vbo_draw_arrays (ctx=0x7fb18b112010, mode=0, start=0, count=1, numInstances=1, baseInstance=0)
    at src/mesa/vbo/vbo_exec_array.c:667
#12 0x00007fb187b77656 in vbo_exec_DrawArrays (mode=0, start=0, count=1) at src/mesa/vbo/vbo_exec_array.c:819
#13 0x00007fb18ac3709e in stub_glDrawArrays (mode=0, first=0, count=1) at piglit/tests/util/generated_dispatch.c:6274
#14 0x0000000000409343 in piglit_display () at piglit/tests/shaders/shader_runner.c:1939
#15 0x00007fb18ac287e2 in display () at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:60
#16 0x00007fb18a3c0244 in fghRedrawWindow (window=0x1646490) at freeglut_main.c:231
#17 fghcbDisplayWindow (window=0x1646490, enumerator=0x7fff08c985f0) at freeglut_main.c:248
#18 0x00007fb18a3c3aa9 in fgEnumWindows (enumCallback=enumCallback@entry=0x7fb18a3c01d0 <fghcbDisplayWindow>, 
    enumerator=enumerator@entry=0x7fff08c985f0) at freeglut_structure.c:396
#19 0x00007fb18a3c07fd in fghDisplayAll () at freeglut_main.c:271
#20 glutMainLoopEvent () at freeglut_main.c:1523
#21 0x00007fb18a3c0ffd in glutMainLoop () at freeglut_main.c:1571
#22 0x00007fb18ac28ac4 in run_test (gl_fw=0x7fb18af17380 <glut_fw>, argc=2, argv=0x7fff08c989c8)
    at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:154
#23 0x00007fb18ac26819 in piglit_gl_test_run (argc=2, argv=0x7fff08c989c8, config=0x7fff08c98890)
    at piglit/tests/util/piglit-framework-gl.c:151
#24 0x000000000040468e in main (argc=2, argv=0x7fff08c989c8) at piglit/tests/shaders/shader_runner.c:60
(gdb) frame 0
#0  0x00007fb187cb25d9 in do_cliptest_xy_fullz_user_viewport (pvs=0x165dce0, info=0x7fff08c97e80, prim_info=0x7fff08c97ec0)
    at src/gallium/auxiliary/draw/draw_cliptest_tmp.h:91
91	            out->clip[i] = clipvertex[i];
(gdb) print i
$1 = 0
(gdb) print out->clip[i]
$2 = 4.58070455e-41
(gdb) print clipvertex[i]
Cannot access memory at address 0x1001addd44
(gdb) print clipvertex
$3 = (float *) 0x1001addd44
Comment 1 Vinson Lee 2014-06-14 01:24:53 UTC
softpipe also crashes in the same way with the same piglit test.
Comment 2 Roland Scheidegger 2014-08-07 21:11:41 UTC
Forgot to mention it in the commit log but this was fixed by 6e9005e8b0e72e7a29cd9700d3bcb2459922c01e

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.