[Mesa-dev] [Bug 111681] Shared Memeory leakage in XCreateDrawable

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 13 10:14:53 UTC 2019


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

            Bug ID: 111681
           Summary: Shared Memeory leakage in XCreateDrawable
           Product: Mesa
           Version: 19.1
          Hardware: x86 (IA32)
                OS: Linux (All)
            Status: NEW
          Severity: major
          Priority: not set
         Component: GLX
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: andreasgottschling at outlook.de
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 145344
  --> https://bugs.freedesktop.org/attachment.cgi?id=145344&action=edit
Solving the shared memory leakge problem

In rc/glx/drisw_glx.c
XCreateDrawable(struct drisw_drawable * pdp, int shmid, Display * dpy)

it will be checked at entering function if there is an image already defined
and if so it will get destroyed. Unfortunately this marks the Shared Memory
only as "dest" ( "Mark the segment to be destroyed. The segment will actually
be destroyed only after the last process detaches it.")
But after this call the XShmDetachCall is missing and so shared memory will sum
up until the program is finished

I tested attached patch it works.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190913/77571be6/attachment.html>


More information about the mesa-dev mailing list