[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 16:08:23 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=104803
--- Comment #2 from Brad King <brad.king at kitware.com> ---
Created attachment 136976
--> https://bugs.freedesktop.org/attachment.cgi?id=136976&action=edit
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180126/b5023d00/attachment.html>
More information about the mesa-dev
mailing list