[Mesa-dev] [Bug 104803] SIGSEGV in state_tracker/st_glsl_to_tgsi_temprename.cpp
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jan 26 15:18:16 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=104803
Bug ID: 104803
Summary: SIGSEGV in
state_tracker/st_glsl_to_tgsi_temprename.cpp
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/swr
Assignee: mesa-dev at lists.freedesktop.org
Reporter: brad.king at kitware.com
QA Contact: mesa-dev at lists.freedesktop.org
Created attachment 136975
--> https://bugs.freedesktop.org/attachment.cgi?id=136975&action=edit
apitrace of test that crashes
Some VTK tests started crashing with nightly Mesa recently. It bisects to
commit 807e2539e5 (mesa/st/glsl_to_tgsi: Add tracking of ifelse writes in
register merging).
Running a test with current `master` (commit d3ce493b34), gdb reports this
stack trace:
```
Thread 1 "vtkRenderingLIC" received signal SIGSEGV, Segmentation fault.
0x00007ffff3c74542 in (anonymous namespace)::prog_scope::begin (this=0x0) at
state_tracker/st_glsl_to_tgsi_temprename.cpp:437
437 return scope_begin;
(gdb) where
#0 0x00007ffff3c74542 in (anonymous namespace)::prog_scope::begin (this=0x0)
at state_tracker/st_glsl_to_tgsi_temprename.cpp:437
#1 0x00007ffff3c7432f in (anonymous namespace)::prog_scope::contains_range_of
(this=0x0, other=...) at state_tracker/st_glsl_to_tgsi_temprename.cpp:365
#2 0x00007ffff3c75048 in (anonymous
namespace)::temp_comp_access::get_required_lifetime (this=0x555556116ed0) at
state_tracker/st_glsl_to_tgsi_temprename.cpp:803
#3 0x00007ffff3c748dc in (anonymous
namespace)::temp_access::get_required_lifetime (this=0x555556116ed0) at
state_tracker/st_glsl_to_tgsi_temprename.cpp:527
#4 0x00007ffff3c755b7 in (anonymous
namespace)::access_recorder::get_required_lifetimes (this=0x7fffffffb6c0,
lifetimes=0x555555c9ead0) at state_tracker/st_glsl_to_tgsi_temprename.cpp:933
#5 0x00007ffff3c75f3a in get_temp_registers_required_lifetimes
(mem_ctx=0x555555ca56b0, instructions=0x5555561159d0, ntemps=60,
lifetimes=0x555555c9ead0) at state_tracker/st_glsl_to_tgsi_temprename.cpp:1120
#6 0x00007ffff3c6b3a4 in glsl_to_tgsi_visitor::merge_registers
(this=0x555556110500) at state_tracker/st_glsl_to_tgsi.cpp:5316
#7 0x00007ffff3c6fb29 in get_mesa_program_tgsi (ctx=0x5555559308a0,
shader_program=0x555555c3aee0, shader=0x55555610f5f0) at
state_tracker/st_glsl_to_tgsi.cpp:6767
#8 0x00007ffff3c704c5 in st_link_shader (ctx=0x5555559308a0,
prog=0x555555c3aee0) at state_tracker/st_glsl_to_tgsi.cpp:7065
#9 0x00007ffff3c95b77 in _mesa_glsl_link_shader (ctx=0x5555559308a0,
prog=0x555555c3aee0) at program/ir_to_mesa.cpp:3126
#10 0x00007ffff3b446c3 in link_program (no_error=false, shProg=0x555555c3aee0,
ctx=0x5555559308a0) at main/shaderapi.c:1203
#11 link_program_error (ctx=0x5555559308a0, shProg=0x555555c3aee0) at
main/shaderapi.c:1281
#12 0x00007ffff3b45cad in _mesa_LinkProgram (programObj=9) at
main/shaderapi.c:1773
...vtk code...
```
I've also attached an apitrace.
For reference I configure Mesa with:
```
./autogen.sh \
--prefix="$prefix" \
--enable-debug \
--disable-dri \
--disable-egl \
--disable-gbm \
--disable-gles1 \
--disable-gles2 \
--disable-shared-glapi \
--with-platforms=x11 \
--enable-glx=gallium-xlib \
--enable-gallium-osmesa \
--with-gallium-drivers=swrast \
--enable-gallium-llvm=yes \
LLVM_CONFIG=/usr/bin/llvm-config-3.8 \
--enable-llvm-shared-libs
```
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180126/92318beb/attachment-0001.html>
More information about the mesa-dev
mailing list