[Bug 39193] glCheckFramebufferStatusEXT segfaults in Gallium when checking status on a framebuffer bound to a texture that's bound to a pixmap

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 14 09:54:34 PDT 2011


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

--- Comment #1 from Simon Farnsworth <simon.farnsworth at onelan.co.uk> 2011-07-14 09:54:34 PDT ---
I'm going to hunt for a different way to do this; I can see what's going on,
but I have no idea why.

glXBindTexImageEXT ends up calling into st_context_teximage (st_manager.c:523
onwards in my git checkout). When st_context_teximage is about to exit
(returning TRUE), I can see that stObj and stImage have been successfully
initialised, but that stImage->pt is NULL.

When I call glFramebufferTexture2DEXT, the same stObj as st_context_teximage
set up is used; this step works, because it never looks at the pt member.

When I call glCheckFramebufferStatusEXT, I get burnt - st_validate_attachment
deferences pt without checking it for NULL, and thus I segfault out.

I can't work out how stImage->pt is meant to be set; it looks like it might be
a side-effect of pipe_resource_reference, but it isn't happening.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list