[VDPAU] [PATCH v2] Fix leaked extension info on library unload

Aaron Plattner aplattner at nvidia.com
Thu Jan 24 16:53:29 PST 2013


On 01/22/2013 01:26 PM, Robert Morell wrote:
> In this sequence:
> dlopen(libvdpau.so)
> vdp_device_create_x11(dpy, ...)
> dlclose(libvdpau.so)
> XCloseDisplay(dpy)
>
> the process will attempt to call the address at which DRI2CloseDisplay
> was previously mapped, possibly resulting in a SEGV.
>
> Instead of tracking displays to which we've added hooks and cleaning up
> the extension on library unload or display close, simply clean up after
> ourselves once we have the data we need.
>
> Signed-off-by: Robert Morell <rmorell at nvidia.com>
> ---
>
> Apologies for the duplicated post earlier.  Here is an updated version of the
> patch that actually destroys the extension hooks entirely using
> XextDestroyExtension(), rather than just removing this particular display.

Pushed.

To ssh://people.freedesktop.org/~aplattner/libvdpau
    837c63d..3b43955  master -> master

I also wrote a test for this that I'll send out for review separately.

-- 
Aaron


More information about the VDPAU mailing list