On 27 January 2017 at 10:59, Nicolai Hähnle <nhaeh...@gmail.com> wrote: > From: Nicolai Hähnle <nicolai.haeh...@amd.com> > > With the previous patch, we can now get NULL loaderPrivates, e.g. when > a DRIdrawable is flushed whose corresponding GLXDRIdrawable was destroyed. > This resulted in a crash, since the loader vs. DRI3 drawable structures > have a non-zero offset. > Just a couple of questions, feel free to disagree ;-)
We have multiple cases where the NULL ptr returned by loader_drawable_to_dri3_drawable() is unchecked and dereferenced. Did you look if any of those can be hit - worth adding an assert ? Can you flip the patch order such that we don't cause a crash (not that memory corruption is too much better). Thanks Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev