[Mesa-dev] [Bug 70920] [GLSL compiler] SIGSEGV for shaders/glsl-fs-inline-explosion

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 15 13:18:37 PDT 2014


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

--- Comment #5 from Erik Faye-Lund <kusmabite at gmail.com> ---
Created attachment 106343
  --> https://bugs.freedesktop.org/attachment.cgi?id=106343&action=edit
error-checking in glsl-compiler

What's going on here, seems to be that we're running out of memory while
linking the shader (during optimizations, but that's probably just dumb luck).
This makes ralloc_size return a NULL-pointer, which gets dereferenced because
the only guards against NULL-pointers in the compiler seems to be asserts.

The attached patch fixes *that* issue for me, but it doesn't make the test
pass, nor fail gracefully either; all that happens is that piglit itself runs
out of memory, triggering an assert.

Besides, it doesn't seem like exceptions is exactly good style in this project.
So I dunno...

-- 
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/20140915/da66873a/attachment.html>


More information about the mesa-dev mailing list