[rv515] piglit fs-mat4-out-of-bounds-6 crashes on 20.1.4 (regression over 17.1.0, bisected)
Backtrace of spec@glsl-1.20@execution@matrix-out-of-bounds-access@fs-mat4-out-of-bounds-6 on mesa 20.1.4:
# coredumpctl gdb
PID: 2736142 (shader_runner)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Sun 2020-08-02 23:29:46 CEST (56s ago)
Command Line: /root/build/piglit/bin/shader_runner /root/build/piglit/tests/spec/glsl-1.20/execution/matrix-out-of-bounds-access/fs-mat4-out-of-bounds-6.shader_test -auto -fbo
Executable: /root/build/piglit/bin/shader_runner
Control Group: /user.slice/user-1000.slice/session-c116.scope
Unit: session-c116.scope
Slice: user-1000.slice
Session: c116
Owner UID: 1000 (ef)
Boot ID: 9f34dc8c2bf947198b67d80a4624aca5
Machine ID: ec19c445c7aeb68ef928eee85f10294a
Hostname: hakla05
Storage: /var/lib/systemd/coredump/core.shader_runner.0.9f34dc8c2bf947198b67d80a4624aca5.2736142.1596403786000000000000.lz4
Message: Process 2736142 (shader_runner) of user 0 dumped core.
Stack trace of thread 2736142:
#0 0x00007f25df7143c0 _ZN20glsl_to_tgsi_visitor12simplify_cmpEv (r300_dri.so + 0x17a3c0)
#1 0x00007f25df716a0f get_mesa_program_tgsi (r300_dri.so + 0x17ca0f)
#2 0x00007f25df717644 st_link_tgsi (r300_dri.so + 0x17d644)
#3 0x00007f25df7463b6 _mesa_glsl_link_shader (r300_dri.so + 0x1ac3b6)
#4 0x00007f25df8521c0 link_program (r300_dri.so + 0x2b81c0)
#5 0x00007f25e13c498c n/a (/root/build/piglit/lib/libpiglitutil_gl.so.0 + 0xd498c)
#6 0x000055a8c50e4be8 n/a (/root/build/piglit/bin/shader_runner + 0xbbe8)
#7 0x000055a8c50f0860 n/a (/root/build/piglit/bin/shader_runner + 0x17860)
#8 0x000055a8c50f1788 n/a (/root/build/piglit/bin/shader_runner + 0x18788)
#9 0x00007f25e142f58d n/a (/root/build/piglit/lib/libpiglitutil_gl.so.0 + 0x13f58d)
#10 0x00007f25e141fc2a n/a (/root/build/piglit/lib/libpiglitutil_gl.so.0 + 0x12fc2a)
#11 0x000055a8c50e18ae n/a (/root/build/piglit/bin/shader_runner + 0x88ae)
#12 0x00007f25e0d46e2b __libc_start_main (libc.so.6 + 0x23e2b)
#13 0x000055a8c50e158a n/a (/root/build/piglit/bin/shader_runner + 0x858a)
GNU gdb (Gentoo 9.2 vanilla) 9.2
Copyright (C) 2020 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
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 /root/build/piglit/bin/shader_runner...
[New LWP 2736142]
[New LWP 2736144]
[New LWP 2736143]
[New LWP 2736147]
[New LWP 2736145]
[New LWP 2736146]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/root/build/piglit/bin/shader_runner /root/build/piglit/tests/spec/glsl-1.20/ex'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f25df7143c0 in glsl_to_tgsi_visitor::simplify_cmp (this=this@entry=0x55a8c6f71da0) at ../mesa-20.1.4/src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4911
4911 prevWriteMask = tempWrites[inst->dst[0].index];
[Current thread is 1 (Thread 0x7f25e08e7e80 (LWP 2736142))]
Results of spec@glsl-1.20@execution@matrix-out-of-bounds-access@fs-mat4-out-of-bounds-6 on mesa 17.1.0:
Returncode 0
Time 0:00:00.066946
Stdout
Stderr
r300: DRM version: 2.50.0, Name: ATI RV515, ID: 0x7187, GB: 1, Z: 1
r300: GART size: 509 MB, VRAM size: 512 MB
r300: AA compression RAM: YES, Z compression RAM: YES, HiZ RAM: YES
Environment
PIGLIT_SOURCE_DIR="/root/build/piglit" PIGLIT_PLATFORM="mixed_glx_egl"
Command
/root/build/piglit/bin/shader_runner /root/build/piglit/tests/spec/glsl-1.20/execution/matrix-out-of-bounds-access/fs-mat4-out-of-bounds-6.shader_test -auto -fbo
Bisecting the issue revealed this commit:
3bc716979300c865f8793783142f16838cd0a175 is the first bad commit
commit 3bc716979300c865f8793783142f16838cd0a175
Author: Dave Airlie <airlied@redhat.com>
Date: Tue May 30 15:52:11 2017 +1000
st_glsl_to_tgsi: bump index back up to 32-bit
with some of the fp64 emulation, we are seeing shaders coming in with
> 32K temps, they go out with 40 or so used, but while doing register
renumber we need to store a lot of them.
So bump this fields back up to 32-bit.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Some data about the system (same as in issue #3152 (closed)).
# inxi -b
System: Kernel: 5.8.0-rc7 x86_64 bits: 64 Desktop: Xfce 4.14.2 Distro: Gentoo Base System release 2.6
Machine: Type: Desktop Mobo: ASRock model: B450M Steel Legend serial: M80-D1005301508 UEFI: American Megatrends v: P2.90
date: 11/27/2019
CPU: 16-Core (2-Die): AMD Ryzen 9 3950X type: MT MCP MCM speed: 3599 MHz min/max: 2200/3600 MHz
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] RV516 [Radeon X1300/X1550 Series] driver: radeon v: kernel
Display: x11 server: X.Org 1.20.8 driver: ati,radeon unloaded: fbdev,modesetting resolution: 1920x1080~60Hz
OpenGL: renderer: ATI RV515 v: 2.1 Mesa 20.1.4
Network: Device-1: Qualcomm Atheros AR9287 Wireless Network Adapter driver: ath9k
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169