[Bug 98699] "float[a+++++4 ? 1:1] f;" crashes glsl_compiler

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 12 21:56:22 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98699

            Bug ID: 98699
           Summary: "float[a+++++4 ? 1:1] f;" crashes glsl_compiler
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: glsl-compiler
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: karolherbst at gmail.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Created attachment 127941
  --> https://bugs.freedesktop.org/attachment.cgi?id=127941&action=edit
the bad shader

backtrace:

#0  0x00007ffff6d794eb in __GI_raise (sig=sig at entry=6) at
../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff6d7aa71 in __GI_abort () at abort.c:89
#2  0x00007ffff6d72309 in __assert_fail_base (fmt=0x7ffff6eb4e90 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n", assertion=assertion at entry=0x754209
"dummy_instructions.is_empty()", 
    file=file at entry=0x74ea28 "../../../src/compiler/glsl/ast_to_hir.cpp",
line=line at entry=2252, 
    function=function at entry=0x753de0 <process_array_size(exec_node*,
_mesa_glsl_parse_state*)::__PRETTY_FUNCTION__> "unsigned int
process_array_size(exec_node*, _mesa_glsl_parse_state*)") at assert.c:92
#3  0x00007ffff6d723b3 in __GI___assert_fail
(assertion=assertion at entry=0x754209 "dummy_instructions.is_empty()",
file=file at entry=0x74ea28 "../../../src/compiler/glsl/ast_to_hir.cpp",
line=line at entry=2252, 
    function=function at entry=0x753de0 <process_array_size(exec_node*,
_mesa_glsl_parse_state*)::__PRETTY_FUNCTION__> "unsigned int
process_array_size(exec_node*, _mesa_glsl_parse_state*)") at assert.c:101
#4  0x0000000000604c8b in process_array_size (state=<optimized out>,
node=0x9d5e78) at ../../../src/compiler/glsl/ast_to_hir.cpp:2252
#5  process_array_type (loc=loc at entry=0x7fffffffd170, base=<optimized out>,
array_specifier=<optimized out>, state=state at entry=0x9d4880) at
../../../src/compiler/glsl/ast_to_hir.cpp:2278
#6  0x0000000000627805 in ast_type_specifier::glsl_type (state=0x9d4880,
name=<synthetic pointer>, this=0x9d5a00) at
../../../src/compiler/glsl/ast_to_hir.cpp:2332
#7  ast_fully_specified_type::glsl_type (state=0x9d4880, name=<synthetic
pointer>, this=<optimized out>) at
../../../src/compiler/glsl/ast_to_hir.cpp:2612
#8  ast_declarator_list::hir (this=0x9d87e8, instructions=0x9e7390,
state=0x9d4880) at ../../../src/compiler/glsl/ast_to_hir.cpp:4552
#9  0x0000000000634a3f in ast_compound_statement::hir (state=0x9d4880,
instructions=0x9e7390, this=0x9d8850) at
../../../src/compiler/glsl/ast_to_hir.cpp:2180
#10 ast_function_definition::hir (this=0x9d88b0, instructions=<optimized out>,
state=0x9d4880) at ../../../src/compiler/glsl/ast_to_hir.cpp:5733
#11 0x000000000061e041 in _mesa_ast_to_hir (instructions=0x9d6550,
state=state at entry=0x9d4880) at ../../../src/compiler/glsl/ast_to_hir.cpp:154
#12 0x000000000045bdc3 in _mesa_glsl_compile_shader (ctx=ctx at entry=0x995aa0
<standalone_compile_shader::local_ctx>, shader=shader at entry=0x9d2960,
dump_ast=<optimized out>, dump_hir=<optimized out>)
    at ../../../src/compiler/glsl/glsl_parser_extras.cpp:1926
#13 0x000000000040b2e3 in compile_shader (shader=0x9d2960, ctx=0x995aa0
<standalone_compile_shader::local_ctx>) at
../../../src/compiler/glsl/standalone.cpp:353
#14 standalone_compile_shader (_options=_options at entry=0x995a50 <options>,
num_files=num_files at entry=1, files=<optimized out>) at
../../../src/compiler/glsl/standalone.cpp:467
#15 0x0000000000405a26 in main (argc=<optimized out>, argv=0x7fffffffd628) at
../../../src/compiler/glsl/main.cpp:92

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20161112/6de1456e/attachment.html>


More information about the intel-3d-bugs mailing list