<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 - Mesa 18.3.2 crash on a specific fragment shader (assert triggered) / already fixed on the master branch."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109488">109488</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Mesa 18.3.2 crash on a specific fragment shader (assert triggered) / already fixed on the master branch.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>18.3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>glsl-compiler
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>patrick9876@free.fr
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following shader: <a href="https://www.shadertoy.com/view/ll3fz4">https://www.shadertoy.com/view/ll3fz4</a> generates an
assert. The issue is fixed after applying the following commit:
76c27e47b90647df047e785d6b3ab5d0d979a1ee available on the master branch.

This commit: 76c27e47b90647df047e785d6b3ab5d0d979a1ee   is likely required on
the stable branch too.

With Mesa 18.3.2:
#3  0x00007ffff6ade5f2 in __assert_fail () from /lib64/libc.so.6
#4  0x00007ffff0693686 in (anonymous
namespace)::ir_constant_variable_visitor::visit_enter (this=0x7fffffff8680,
ir=0x147c470) at glsl/opt_constant_variable.cpp:161
#5  0x00007ffff058962e in ir_call::accept (this=0x147c470, v=0x7fffffff8680) at
glsl/ir_hv_accept.cpp:326
#6  0x00007ffff0588968 in visit_list_elements (v=0x7fffffff8680, l=0x14736c0,
statement_list=true) at glsl/ir_hv_accept.cpp:55
#7  0x00007ffff0588a96 in ir_loop::accept (this=0x14736a0, v=0x7fffffff8680) at
glsl/ir_hv_accept.cpp:89
#8  0x00007ffff0588968 in visit_list_elements (v=0x7fffffff8680, l=0x1471e90,
statement_list=true) at glsl/ir_hv_accept.cpp:55
#9  0x00007ffff058883c in ir_hierarchical_visitor::run (this=0x7fffffff8680,
instructions=0x1471e90) at glsl/ir_hierarchical_visitor.cpp:364
#10 0x00007ffff06937f5 in do_constant_variable (instructions=0x1471e90) at
glsl/opt_constant_variable.cpp:191
#11 0x00007ffff069397a in do_constant_variable_unlinked (instructions=0xc78570)
at glsl/opt_constant_variable.cpp:217
#12 0x00007ffff0559c2d in do_common_optimization (ir=0xc78570, linked=false,
uniform_locations_assigned=false, options=0xcb2120, native_integers=true) at
glsl/glsl_parser_extras.cpp:2243
#13 0x00007ffff0559273 in opt_shader_and_create_symbol_table (ctx=0xcb1160,
source_symbols=0x0, shader=0x11db210) at glsl/glsl_parser_extras.cpp:2010
#14 0x00007ffff05594eb in _mesa_glsl_compile_shader (ctx=0xcb1160,
shader=0x11db210, dump_ast=false, dump_hir=false, force_recompile=true) at
glsl/glsl_parser_extras.cpp:2093
#15 0x00007ffff06a5158 in compile_shaders (ctx=0xcb1160, prog=0x11e92b0) at
glsl/shader_cache.cpp:73
#16 0x00007ffff06a585f in shader_cache_read_program_metadata (ctx=0xcb1160,
prog=0x11e92b0) at glsl/shader_cache.cpp:232
#17 0x00007ffff05c3b4f in link_shaders (ctx=0xcb1160, prog=0x11e92b0) at
glsl/linker.cpp:4879
#18 0x00007ffff0475a05 in _mesa_glsl_link_shader (ctx=0xcb1160, prog=0x11e92b0)
at program/ir_to_mesa.cpp:3160
#19 0x00007ffff02fb9e6 in link_program (no_error=false, shProg=0x11e92b0,
ctx=0xcb1160) at main/shaderapi.c:1206
#20 link_program_error (ctx=0xcb1160, shProg=0x11e92b0) at
main/shaderapi.c:1286
#21 0x00007ffff02fd181 in _mesa_LinkProgram (programObj=16) at
main/shaderapi.c:1778
#22 0x00007ffff55e5254 in compile_program (fslocalp=0x7ffff55f35a0 <fsprogram>)
at shaderplayopengl.c:299
#23 0x00007ffff55e66bd in setup_createprogram (fslocalp=0x7ffff55f35a0
<fsprogram>, root=1) at shaderplayopengl.c:472
#24 0x00007ffff55e3e4e in context_reset () at libretro-shaderplay.c:1660</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>