[Mesa-dev] [Bug 74717] r600g: 'invalid read' linking geometry shader

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Feb 8 14:03:50 PST 2014


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

--- Comment #2 from Török Edwin <edwin+mesa at etorok.net> ---
(In reply to comment #1)
> I have replayed your trace and I get the following failing assertion. (mesa
> is compiled with --enable-debug)
> 
> glretrace: ../../src/glsl/ir.cpp:170:
> ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*,
> unsigned int): Assertion `lhs_components ==
> this->rhs->type->vector_elements' failed.

I can confirm that I get the same assertion when running the original program,
see backtrace below:

OpenGL Version Needed 3.2 ( 3.3 Found )
Compiling shader
gl-320/primitive-shading.vert...

Compiling shader
gl-320/primitive-shading.geom...

Compiling shader
gl-320/primitive-shading.frag...

gl-320-primitive-shading: ../../src/glsl/ir.cpp:170:
ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, unsigned
int): Assertion `lhs_components == this->rhs->type->vector_elements' failed.

Program received signal SIGABRT, Aborted.
0x000000382c4351d5 in __GI_raise (sig=sig at entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x000000382c4351d5 in __GI_raise (sig=sig at entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x000000382c438388 in __GI_abort () at abort.c:90
#2  0x000000382c42e252 in __assert_fail_base (fmt=0x382c56c080 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n", 
    assertion=assertion at entry=0x7ffff70d6cb8 "lhs_components ==
this->rhs->type->vector_elements", 
    file=file at entry=0x7ffff70d6c57 "../../src/glsl/ir.cpp",
line=line at entry=170, 
    function=function at entry=0x7ffff70d7960
<ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, unsigned
int)::__PRETTY_FUNCTION__> "ir_assignment::ir_assignment(ir_dereference*,
ir_rvalue*, ir_rvalue*, unsigned int)") at assert.c:92
#3  0x000000382c42e302 in __GI___assert_fail (assertion=0x7ffff70d6cb8
"lhs_components == this->rhs->type->vector_elements", 
    file=0x7ffff70d6c57 "../../src/glsl/ir.cpp", line=170, 
    function=0x7ffff70d7960 <ir_assignment::ir_assignment(ir_dereference*,
ir_rvalue*, ir_rvalue*, unsigned int)::__PRETTY_FUNCTION__>
"ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, unsigned
int)") at assert.c:101
#4  0x00007ffff65950c1 in ir_assignment::ir_assignment (this=0xa4f8f0,
lhs=0xa4f250, rhs=0xa4f3a0, condition=0x0, write_mask=15)
    at ../../src/glsl/ir.cpp:170
#5  0x00007ffff659b9b7 in ir_assignment::clone (this=0xa42880,
mem_ctx=0x79f4e0, ht=0xa4ef50) at ../../src/glsl/ir_clone.cpp:271
#6  0x00007ffff659bfcf in clone_ir_list (mem_ctx=0x79f4e0, out=0x7fffffffd8e0,
in=0xa41f60) at ../../src/glsl/ir_clone.cpp:432
#7  0x00007ffff65bffe5 in (anonymous
namespace)::loop_unroll_visitor::simple_unroll (this=0x7fffffffdba0,
ir=0xa41f40, 
    iterations=3) at ../../src/glsl/loop_unroll.cpp:112
#8  0x00007ffff65c03ae in (anonymous
namespace)::loop_unroll_visitor::visit_leave (this=0x7fffffffdba0, ir=0xa41f40)
    at ../../src/glsl/loop_unroll.cpp:270
#9  0x00007ffff65a5633 in ir_loop::accept (this=0xa41f40, v=0x7fffffffdba0) at
../../src/glsl/ir_hv_accept.cpp:94
#10 0x00007ffff65a5505 in visit_list_elements (v=0x7fffffffdba0, l=0xa41b38,
statement_list=true)
    at ../../src/glsl/ir_hv_accept.cpp:56
#11 0x00007ffff65a56f5 in ir_function_signature::accept (this=0xa41af0,
v=0x7fffffffdba0) at ../../src/glsl/ir_hv_accept.cpp:116
#12 0x00007ffff65a5505 in visit_list_elements (v=0x7fffffffdba0, l=0xa41a58,
statement_list=false)
    at ../../src/glsl/ir_hv_accept.cpp:56
#13 0x00007ffff65a5789 in ir_function::accept (this=0xa41a30, v=0x7fffffffdba0)
at ../../src/glsl/ir_hv_accept.cpp:128
#14 0x00007ffff65a5505 in visit_list_elements (v=0x7fffffffdba0, l=0xa3d400,
statement_list=true)
    at ../../src/glsl/ir_hv_accept.cpp:56
#15 0x00007ffff65a5426 in ir_hierarchical_visitor::run (this=0x7fffffffdba0,
instructions=0xa3d400)
    at ../../src/glsl/ir_hierarchical_visitor.cpp:309
#16 0x00007ffff65c065d in unroll_loops (instructions=0xa3d400, ls=0xa4f3f0,
max_iterations=255)
    at ../../src/glsl/loop_unroll.cpp:345
#17 0x00007ffff6591377 in do_common_optimization (ir=0xa3d400, linked=true,
uniform_locations_assigned=false, 
    max_unroll_iterations=255, options=0x7ffff53a6eec) at
../../src/glsl/glsl_parser_extras.cpp:1507
#18 0x00007ffff65bd46b in link_shaders (ctx=0x7ffff5385010, prog=0xa30aa0) at
../../src/glsl/linker.cpp:2172
#19 0x00007ffff64f37b7 in _mesa_glsl_link_shader (ctx=0x7ffff5385010,
prog=0xa30aa0) at program/ir_to_mesa.cpp:3087
#20 0x00007ffff63f97c0 in link_program (ctx=0x7ffff5385010, program=4) at
main/shaderapi.c:873
#21 0x00007ffff63fa592 in _mesa_LinkProgram (programObj=4) at
main/shaderapi.c:1333
#22 0x0000000000436ea4 in initProgram() ()
#23 0x00000000004372f1 in begin() ()
#24 0x0000000000438ecb in glf::run(int, char**, glm::detail::tvec2<int,
(glm::precision)0> const&, int, int, int) ()

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140208/3782cd65/attachment-0001.html>


More information about the mesa-dev mailing list