[g33][bisected][regression] multiple piglit test crashes after "switch MultiDrawElements(BaseVertex) to DrawGallium*"
Issues began with mesa=9d90b44a:
Author: Marek Olšák <marek.olsak@amd.com>
Date: Sun Nov 1 17:07:03 2020 -0500
mesa: switch MultiDrawElements(BaseVertex) to DrawGallium*
This makes gallium faster because st/mesa doesn't have to translate
_mesa_prim.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7679>
bt shows a segfault due to file 'vbo_minmax_index.c' being unavailable:
$ /tmp/build_root/m64$ LD_LIBRARY_PATH=/tmp/build_root/m64/lib64:/tmp/build_root/m64/lib/x86_64-linux-gnu:/tmp/build_root/m64/lib:/usr/lib64:/usr/lib/x86_64-linux-gnu:/usr/lib:/tmp/build_root/m64/lib64/dri:/tmp/b
uild_root/m64/lib/x86_64-linux-gnu/dri:/tmp/build_root/m64/lib/dri:/usr/lib64/dri:/usr/lib/x86_64-linux-gnu/dri:/usr/lib/dri:/tmp/build_root/m64/lib/piglit/lib LIBGL_DRIVERS_PATH=/tmp/build_root/m64/lib64/dri:/tmp/build_root/m64/lib/x86_6
4-linux-gnu/dri:/tmp/build_root/m64/lib/dri:/usr/lib64/dri:/usr/lib/x86_64-linux-gnu/dri:/usr/lib/dri VK_ICD_FILENAMES=/tmp/build_root/m64/share/vulkan/icd.d/intel_icd.x86_64.json PIGLIT_DEBUG=1 PATH=/tmp/build_root/m64/bin:/usr/local/bin
:/usr/bin:/bin:/usr/games DISPLAY=:0 gdb --args /tmp/build_root/m64/lib/piglit/bin/hiz -auto -fbo
GNU gdb (Debian 8.2-1) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /tmp/build_root/m64/lib/piglit/bin/hiz...done.
(gdb) r
Starting program: /tmp/build_root/m64/lib/piglit/bin/hiz -auto -fbo
BFD: /usr/lib/debug/.build-id/c3/140445de73cd96ae0624d676b0dbdd8a7dea36.debug: unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/c3/140445de73cd96ae0624d676b0dbdd8a7dea36.debug: unable to initialize decompress status for section .debug_aranges
warning: File "/usr/lib/debug/.build-id/c3/140445de73cd96ae0624d676b0dbdd8a7dea36.debug" has no build-id, file skipped
BFD: /usr/lib/debug/.build-id/0a/30aeb21c2663dfdc857c4456015809df06a52c.debug: unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/0a/30aeb21c2663dfdc857c4456015809df06a52c.debug: unable to initialize decompress status for section .debug_aranges
warning: File "/usr/lib/debug/.build-id/0a/30aeb21c2663dfdc857c4456015809df06a52c.debug" has no build-id, file skipped
BFD: /usr/lib/debug/.build-id/b7/ca8289e3166be84222b2904268e7cb81a32bc4.debug: unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/b7/ca8289e3166be84222b2904268e7cb81a32bc4.debug: unable to initialize decompress status for section .debug_aranges
warning: File "/usr/lib/debug/.build-id/b7/ca8289e3166be84222b2904268e7cb81a32bc4.debug" has no build-id, file skipped
BFD: /usr/lib/debug/.build-id/f2/c7de0acd47d86cf3580641f055295268d64c8a.debug: unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/f2/c7de0acd47d86cf3580641f055295268d64c8a.debug: unable to initialize decompress status for section .debug_aranges
warning: File "/usr/lib/debug/.build-id/f2/c7de0acd47d86cf3580641f055295268d64c8a.debug" has no build-id, file skipped
BFD: /usr/lib/debug/.build-id/62/194ae30823abf4a81206eb9d79d4a9175507f8.debug: unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/62/194ae30823abf4a81206eb9d79d4a9175507f8.debug: unable to initialize decompress status for section .debug_aranges
warning: File "/usr/lib/debug/.build-id/62/194ae30823abf4a81206eb9d79d4a9175507f8.debug" has no build-id, file skipped
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
First the red triangle is drawn, then the blue one.
Program received signal SIGSEGV, Segmentation fault.
vbo_get_minmax_indices (ctx=0x5555556285f0, prims=prims@entry=0x7fffffffdc70, ib=ib@entry=0x0, min_index=min_index@entry=0x7fffffffdc10, max_index=max_index@entry=0x7fffffffdc18, nr_prims=nr_prims@entry=1, primitive_restart=false,
restart_index=0) at ../src/mesa/vbo/vbo_minmax_index.c:387
387 ../src/mesa/vbo/vbo_minmax_index.c: No such file or directory.
(gdb) bt
#0 vbo_get_minmax_indices (ctx=0x5555556285f0, prims=prims@entry=0x7fffffffdc70, ib=ib@entry=0x0, min_index=min_index@entry=0x7fffffffdc10, max_index=max_index@entry=0x7fffffffdc18, nr_prims=nr_prims@entry=1, primitive_restart=false,
restart_index=0) at ../src/mesa/vbo/vbo_minmax_index.c:387
#1 0x00007ffff3b57bba in _tnl_draw_prims (ctx=0x5555556285f0, arrays=0x5555555d1cd0, prim=0x7fffffffdc70, nr_prims=1, ib=0x0, index_bounds_valid=<optimized out>, min_index=<optimized out>, max_index=<optimized out>, num_instances=1,
base_instance=0) at ../src/mesa/tnl/t_draw.c:441
#2 0x00007ffff3c69056 in _mesa_draw_gallium_fallback (ctx=0x5555556285f0, info=0x5555556655b0, draws=0x5555556655d8, num_draws=1) at ../src/mesa/main/draw.c:129
#3 0x00007ffff3c692b3 in _mesa_draw_gallium_complex_fallback (ctx=0x5555556285f0, info=0x5555556655b0, draws=0x5555556655d8, mode=0x5555556657d8 "\004\004", base_vertex=<optimized out>, num_draws=1) at ../src/mesa/main/draw.c:199
#4 0x00007ffff3d9de06 in vbo_exec_vtx_flush (exec=0x555555663f60) at ../src/mesa/vbo/vbo_exec_draw.c:336
#5 0x00007ffff3d6da65 in vbo_exec_FlushVertices_internal (flags=<optimized out>, exec=0x555555663f60) at ../src/mesa/vbo/vbo_exec_api.c:681
#6 vbo_exec_FlushVertices_internal (exec=0x555555663f60, flags=<optimized out>) at ../src/mesa/vbo/vbo_exec_api.c:675
#7 0x00007ffff3d9d05e in vbo_exec_FlushVertices (ctx=ctx@entry=0x5555556285f0, flags=flags@entry=1) at ../src/mesa/vbo/vbo_exec_api.c:1114
#8 0x00007ffff3d04385 in read_pixels (no_error=false, pixels=0x55555749caa0, bufSize=2147483647, type=5126, format=6407, height=<optimized out>, width=<optimized out>, y=<optimized out>, x=<optimized out>)
at ../src/mesa/main/readpix.c:1036
#9 _mesa_ReadnPixelsARB (x=<optimized out>, y=<optimized out>, width=<optimized out>, height=<optimized out>, format=6407, type=5126, bufSize=2147483647, pixels=0x55555749caa0) at ../src/mesa/main/readpix.c:1179
#10 0x00007ffff3d04812 in _mesa_ReadPixels (x=<optimized out>, y=<optimized out>, width=<optimized out>, height=<optimized out>, format=<optimized out>, type=<optimized out>, pixels=0x55555749caa0) at ../src/mesa/main/readpix.c:1194
#11 0x00007ffff7eb9be4 in stub_glReadPixels (x=0, y=0, width=400, height=400, format=6407, type=5126, pixels=0x55555749caa0) at tests/util/piglit-dispatch-gen.c:50556
#12 0x0000555555555a2a in test_less () at ../tests/general/hiz.c:166
#13 0x0000555555555cba in piglit_display () at ../tests/general/hiz.c:241
#14 0x00007ffff7f0c38f in process_next_event (x11_fw=0x555555587f50) at ../tests/util/piglit-framework-gl/piglit_x11_framework.c:137
#15 0x00007ffff7f0c432 in enter_event_loop (winsys_fw=0x555555587f50) at ../tests/util/piglit-framework-gl/piglit_x11_framework.c:153
#16 0x00007ffff7f0b0b8 in run_test (gl_fw=0x555555587f50, argc=1, argv=0x7fffffffe2f8) at ../tests/util/piglit-framework-gl/piglit_winsys_framework.c:88
#17 0x00007ffff7ef9f84 in piglit_gl_test_run (argc=1, argv=0x7fffffffe2f8, config=0x7fffffffe1a0) at ../tests/util/piglit-framework-gl.c:229
#18 0x0000555555555253 in main (argc=1, argv=0x7fffffffe2f8) at ../tests/general/hiz.c:43