[Bug 71574] Long expressions in shaders crash Mesa
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Nov 25 04:18:03 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=71574
--- Comment #7 from Kevin Rogovin <kevin.rogovin at intel.com> ---
It is debatable whether the shaders that are crashing Mesa really matter as
they would not happen in the wild.
The cause is the following. A tree is built via bison generated code. That code
implements its own stack. However, the tree is walked via recursion using the
OS-provided stack. The crash happens essentially (I think) because of stack
overflow.
Increasing the stack size of walking the tree will just make the bug happen
with even larger expression. The right thing to do is for the Bison generated
code to generate a tree depth value for the tree and the code that walks a tree
checks the depth value and rejects it as "too complicated" if the tree depth is
too great.
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20151125/c5f8e0ff/attachment.html>
More information about the intel-3d-bugs
mailing list