<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - SIGSEGV in state_tracker/st_glsl_to_tgsi_temprename.cpp"
href="https://bugs.freedesktop.org/show_bug.cgi?id=104803">104803</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SIGSEGV in state_tracker/st_glsl_to_tgsi_temprename.cpp
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/Gallium/swr
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>brad.king@kitware.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=136975" name="attach_136975" title="apitrace of test that crashes">attachment 136975</a> <a href="attachment.cgi?id=136975&action=edit" title="apitrace of test that crashes">[details]</a></span>
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
```</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>