Summary: | glsl/ir.cpp:1376: ir_dereference_variable::ir_dereference_variable(ir_variable*): Assertion `var != NULL' failed. | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | glsl-compiler | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | airlied, pmenzel+bugs.freedesktop.org, t_arceri |
Version: | 11.1 | Keywords: | bisected, regression |
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Vinson Lee
2017-03-28 23:06:36 UTC
(In reply to Vinson Lee from comment #0) > mesa: 7ee91af30074a4381e4353122319e3b4b3fe7cbd (master 17.1.0-devel) > > This GLSL shader triggers an assert. > > void main() > { > a[b](c); > } > > Can you send as a piglit test if this is not happening in piglit currently? (In reply to Timothy Arceri from comment #1) > (In reply to Vinson Lee from comment #0) > > mesa: 7ee91af30074a4381e4353122319e3b4b3fe7cbd (master 17.1.0-devel) > > > > This GLSL shader triggers an assert. > > > > void main() > > { > > a[b](c); > > } > > > > > > Can you send as a piglit test if this is not happening in piglit currently? piglit/tests/glslparsertest/glsl2/fdo100438.frag This seems to be fixed? The test reveals a regression(?) too, cf bug 102265 [1]. So thank you for adding the test. [1] https://bugs.freedesktop.org/show_bug.cgi?id=102265 *** Bug 102265 has been marked as a duplicate of this bug. *** Fixed by: Author: George Barrett <bob@bob131.so> Date: Sun Nov 19 21:55:10 2017 +1100 glsl: Catch subscripted calls to undeclared subroutines generate_array_index fails to check whether the target of a subroutine call exists in the AST, potentially passing around null ir_rvalue pointers eventuating in abort/segfault. Fixes: fd01840c0bd3 ("glsl: add AoA support to subroutines") Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100438 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.