From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 74717] r600g: 'invalid read' linking geometry shader Date: Sat, 08 Feb 2014 22:03:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0576606918==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id BE216FA1CA for ; Sat, 8 Feb 2014 14:03:50 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0576606918== Content-Type: multipart/alternative; boundary="1391897030.c8De0aa3.16580"; charset="us-ascii" --1391897030.c8De0aa3.16580 Date: Sat, 8 Feb 2014 22:03:50 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D74717 --- Comment #2 from T=C3=B6r=C3=B6k Edwin --- (In reply to comment #1) > I have replayed your trace and I get the following failing assertion. (me= sa > is compiled with --enable-debug) >=20 > glretrace: ../../src/glsl/ir.cpp:170: > ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, > unsigned int): Assertion `lhs_components =3D=3D > this->rhs->type->vector_elements' failed. I can confirm that I get the same assertion when running the original progr= am, 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*, unsig= ned int): Assertion `lhs_components =3D=3D this->rhs->type->vector_elements' fa= iled. Program received signal SIGABRT, Aborted. 0x000000382c4351d5 in __GI_raise (sig=3Dsig@entry=3D6) 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=3Dsig@entry=3D6) 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=3D0x382c56c080 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",=20 assertion=3Dassertion@entry=3D0x7ffff70d6cb8 "lhs_components =3D=3D this->rhs->type->vector_elements",=20 file=3Dfile@entry=3D0x7ffff70d6c57 "../../src/glsl/ir.cpp", line=3Dline@entry=3D170,=20 function=3Dfunction@entry=3D0x7ffff70d7960 "ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, unsigned int)") at assert.c:92 #3 0x000000382c42e302 in __GI___assert_fail (assertion=3D0x7ffff70d6cb8 "lhs_components =3D=3D this->rhs->type->vector_elements",=20 file=3D0x7ffff70d6c57 "../../src/glsl/ir.cpp", line=3D170,=20 function=3D0x7ffff70d7960 "ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, unsi= gned int)") at assert.c:101 #4 0x00007ffff65950c1 in ir_assignment::ir_assignment (this=3D0xa4f8f0, lhs=3D0xa4f250, rhs=3D0xa4f3a0, condition=3D0x0, write_mask=3D15) at ../../src/glsl/ir.cpp:170 #5 0x00007ffff659b9b7 in ir_assignment::clone (this=3D0xa42880, mem_ctx=3D0x79f4e0, ht=3D0xa4ef50) at ../../src/glsl/ir_clone.cpp:271 #6 0x00007ffff659bfcf in clone_ir_list (mem_ctx=3D0x79f4e0, out=3D0x7fffff= ffd8e0, in=3D0xa41f60) at ../../src/glsl/ir_clone.cpp:432 #7 0x00007ffff65bffe5 in (anonymous namespace)::loop_unroll_visitor::simple_unroll (this=3D0x7fffffffdba0, ir=3D0xa41f40,=20 iterations=3D3) at ../../src/glsl/loop_unroll.cpp:112 #8 0x00007ffff65c03ae in (anonymous namespace)::loop_unroll_visitor::visit_leave (this=3D0x7fffffffdba0, ir=3D0= xa41f40) at ../../src/glsl/loop_unroll.cpp:270 #9 0x00007ffff65a5633 in ir_loop::accept (this=3D0xa41f40, v=3D0x7fffffffd= ba0) at ../../src/glsl/ir_hv_accept.cpp:94 #10 0x00007ffff65a5505 in visit_list_elements (v=3D0x7fffffffdba0, l=3D0xa4= 1b38, statement_list=3Dtrue) at ../../src/glsl/ir_hv_accept.cpp:56 #11 0x00007ffff65a56f5 in ir_function_signature::accept (this=3D0xa41af0, v=3D0x7fffffffdba0) at ../../src/glsl/ir_hv_accept.cpp:116 #12 0x00007ffff65a5505 in visit_list_elements (v=3D0x7fffffffdba0, l=3D0xa4= 1a58, statement_list=3Dfalse) at ../../src/glsl/ir_hv_accept.cpp:56 #13 0x00007ffff65a5789 in ir_function::accept (this=3D0xa41a30, v=3D0x7ffff= fffdba0) at ../../src/glsl/ir_hv_accept.cpp:128 #14 0x00007ffff65a5505 in visit_list_elements (v=3D0x7fffffffdba0, l=3D0xa3= d400, statement_list=3Dtrue) at ../../src/glsl/ir_hv_accept.cpp:56 #15 0x00007ffff65a5426 in ir_hierarchical_visitor::run (this=3D0x7fffffffdb= a0, instructions=3D0xa3d400) at ../../src/glsl/ir_hierarchical_visitor.cpp:309 #16 0x00007ffff65c065d in unroll_loops (instructions=3D0xa3d400, ls=3D0xa4f= 3f0, max_iterations=3D255) at ../../src/glsl/loop_unroll.cpp:345 #17 0x00007ffff6591377 in do_common_optimization (ir=3D0xa3d400, linked=3Dt= rue, uniform_locations_assigned=3Dfalse,=20 max_unroll_iterations=3D255, options=3D0x7ffff53a6eec) at ../../src/glsl/glsl_parser_extras.cpp:1507 #18 0x00007ffff65bd46b in link_shaders (ctx=3D0x7ffff5385010, prog=3D0xa30a= a0) at ../../src/glsl/linker.cpp:2172 #19 0x00007ffff64f37b7 in _mesa_glsl_link_shader (ctx=3D0x7ffff5385010, prog=3D0xa30aa0) at program/ir_to_mesa.cpp:3087 #20 0x00007ffff63f97c0 in link_program (ctx=3D0x7ffff5385010, program=3D4) = at main/shaderapi.c:873 #21 0x00007ffff63fa592 in _mesa_LinkProgram (programObj=3D4) at main/shaderapi.c:1333 #22 0x0000000000436ea4 in initProgram() () #23 0x00000000004372f1 in begin() () #24 0x0000000000438ecb in glf::run(int, char**, glm::detail::tvec2 const&, int, int, int) () --=20 You are receiving this mail because: You are the assignee for the bug. --1391897030.c8De0aa3.16580 Date: Sat, 8 Feb 2014 22:03:50 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Comment= # 2 on bug 74717<= /a> from T=C3=B6r=C3=B6k Edwin
(In reply to comment #1=
)
> I have replayed your trace and I get the followi=
ng failing assertion. (mesa
> is compiled with --enable-debug)
>=20
> glretrace: ../../src/glsl/ir.cpp:170:
> ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*,
> unsigned int): Assertion `lhs_components =3D=3D
> this->rhs->type->vector_elements' failed.

I can confirm that I get the same assertion when running the original progr=
am,
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*, unsig=
ned
int): Assertion `lhs_components =3D=3D this->rhs->type->vector_ele=
ments' failed.

Program received signal SIGABRT, Aborted.
0x000000382c4351d5 in __GI_raise (sig=3Dsig@entry=3D6) 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=3Dsig@entry=3D6) 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=3D0x382c56c080 "%s%s=
%s:%u:
%s%sAssertion `%s' failed.\n%n",=20
    assertion=3Dassertion@entry=3D0x7ffff70d6cb8 "lhs_components =
=3D=3D
this->rhs->type->vector_elements",=20
    file=3Dfile@entry=3D0x7ffff70d6c57 "../../src/glsl/ir.cpp"=
;,
line=3Dline@entry=3D170,=20
    function=3Dfunction@entry=3D0x7ffff70d7960
<ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, u=
nsigned
int)::__PRETTY_FUNCTION__> "ir_assignment::ir_assignment(ir_derefer=
ence*,
ir_rvalue*, ir_rvalue*, unsigned int)") at assert.c:92
#3  0x000000382c42e302 in __GI___assert_fail (assertion=3D0x7ffff70d6cb8
"lhs_components =3D=3D this->rhs->type->vector_elements"=
,=20
    file=3D0x7ffff70d6c57 "../../src/glsl/ir.cpp", line=3D170,=20
    function=3D0x7ffff70d7960 <ir_assignment::ir_assignment(ir_dereferen=
ce*,
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=3D0xa4f8f0,
lhs=3D0xa4f250, rhs=3D0xa4f3a0, condition=3D0x0, write_mask=3D15)
    at ../../src/glsl/ir.cpp:170
#5  0x00007ffff659b9b7 in ir_assignment::clone (this=3D0xa42880,
mem_ctx=3D0x79f4e0, ht=3D0xa4ef50) at ../../src/glsl/ir_clone.cpp:271
#6  0x00007ffff659bfcf in clone_ir_list (mem_ctx=3D0x79f4e0, out=3D0x7fffff=
ffd8e0,
in=3D0xa41f60) at ../../src/glsl/ir_clone.cpp:432
#7  0x00007ffff65bffe5 in (anonymous
namespace)::loop_unroll_visitor::simple_unroll (this=3D0x7fffffffdba0,
ir=3D0xa41f40,=20
    iterations=3D3) at ../../src/glsl/loop_unroll.cpp:112
#8  0x00007ffff65c03ae in (anonymous
namespace)::loop_unroll_visitor::visit_leave (this=3D0x7fffffffdba0, ir=3D0=
xa41f40)
    at ../../src/glsl/loop_unroll.cpp:270
#9  0x00007ffff65a5633 in ir_loop::accept (this=3D0xa41f40, v=3D0x7fffffffd=
ba0) at
../../src/glsl/ir_hv_accept.cpp:94
#10 0x00007ffff65a5505 in visit_list_elements (v=3D0x7fffffffdba0, l=3D0xa4=
1b38,
statement_list=3Dtrue)
    at ../../src/glsl/ir_hv_accept.cpp:56
#11 0x00007ffff65a56f5 in ir_function_signature::accept (this=3D0xa41af0,
v=3D0x7fffffffdba0) at ../../src/glsl/ir_hv_accept.cpp:116
#12 0x00007ffff65a5505 in visit_list_elements (v=3D0x7fffffffdba0, l=3D0xa4=
1a58,
statement_list=3Dfalse)
    at ../../src/glsl/ir_hv_accept.cpp:56
#13 0x00007ffff65a5789 in ir_function::accept (this=3D0xa41a30, v=3D0x7ffff=
fffdba0)
at ../../src/glsl/ir_hv_accept.cpp:128
#14 0x00007ffff65a5505 in visit_list_elements (v=3D0x7fffffffdba0, l=3D0xa3=
d400,
statement_list=3Dtrue)
    at ../../src/glsl/ir_hv_accept.cpp:56
#15 0x00007ffff65a5426 in ir_hierarchical_visitor::run (this=3D0x7fffffffdb=
a0,
instructions=3D0xa3d400)
    at ../../src/glsl/ir_hierarchical_visitor.cpp:309
#16 0x00007ffff65c065d in unroll_loops (instructions=3D0xa3d400, ls=3D0xa4f=
3f0,
max_iterations=3D255)
    at ../../src/glsl/loop_unroll.cpp:345
#17 0x00007ffff6591377 in do_common_optimization (ir=3D0xa3d400, linked=3Dt=
rue,
uniform_locations_assigned=3Dfalse,=20
    max_unroll_iterations=3D255, options=3D0x7ffff53a6eec) at
../../src/glsl/glsl_parser_extras.cpp:1507
#18 0x00007ffff65bd46b in link_shaders (ctx=3D0x7ffff5385010, prog=3D0xa30a=
a0) at
../../src/glsl/linker.cpp:2172
#19 0x00007ffff64f37b7 in _mesa_glsl_link_shader (ctx=3D0x7ffff5385010,
prog=3D0xa30aa0) at program/ir_to_mesa.cpp:3087
#20 0x00007ffff63f97c0 in link_program (ctx=3D0x7ffff5385010, program=3D4) =
at
main/shaderapi.c:873
#21 0x00007ffff63fa592 in _mesa_LinkProgram (programObj=3D4) 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: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1391897030.c8De0aa3.16580-- --===============0576606918== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0576606918==--