<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><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#c2">Comment # 2</a>
on <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">bug 104803</a>
from <span class="vcard"><a class="email" href="mailto:brad.king@kitware.com" title="Brad King <brad.king@kitware.com>"> <span class="fn">Brad King</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=136976" name="attach_136976" title="apitrace of test recorded before change that crashes">attachment 136976</a> <a href="attachment.cgi?id=136976&action=edit" title="apitrace of test recorded before change that crashes">[details]</a></span>
apitrace of test recorded before change that crashes
Thanks Brian. For another try, here is an apitrace of the test that is more
complete by running it with a version of Mesa from just before the breakage.
Also, here is valgrind memcheck output from the segfault:
```
==27717== Invalid read of size 4
==27717== at 0x8B2D542: (anonymous namespace)::prog_scope::begin() const
(st_glsl_to_tgsi_temprename.cpp:437)
==27717== by 0x8B2D32E: (anonymous
namespace)::prog_scope::contains_range_of((anonymous namespace)::prog_scope
const&) const (st_glsl_to_tgsi_temprename.cpp:365)
==27717== by 0x8B2E047: (anonymous
namespace)::temp_comp_access::get_required_lifetime()
(st_glsl_to_tgsi_temprename.cpp:803)
==27717== by 0x8B2D8DB: (anonymous
namespace)::temp_access::get_required_lifetime()
(st_glsl_to_tgsi_temprename.cpp:527)
==27717== by 0x8B2E5B6: (anonymous
namespace)::access_recorder::get_required_lifetimes(lifetime*)
(st_glsl_to_tgsi_temprename.cpp:933)
==27717== by 0x8B2EF39: get_temp_registers_required_lifetimes(void*,
exec_list*, int, lifetime*) (st_glsl_to_tgsi_temprename.cpp:1120)
==27717== by 0x8B243A3: glsl_to_tgsi_visitor::merge_registers()
(st_glsl_to_tgsi.cpp:5316)
==27717== by 0x8B28B28: get_mesa_program_tgsi(gl_context*,
gl_shader_program*, gl_linked_shader*) (st_glsl_to_tgsi.cpp:6767)
==27717== by 0x8B294C4: st_link_shader (st_glsl_to_tgsi.cpp:7065)
==27717== by 0x8B4EB76: _mesa_glsl_link_shader (ir_to_mesa.cpp:3126)
==27717== by 0x89FD6C2: link_program (shaderapi.c:1203)
==27717== by 0x89FD6C2: link_program_error (shaderapi.c:1281)
==27717== by 0x89FECAC: _mesa_LinkProgram (shaderapi.c:1773)
==27717== Address 0xc is not stack'd, malloc'd or (recently) free'd
```
That "Address 0xc" looks suspicious.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>