[VDPAU] [PATCH] test: add a dlclose test

Anssi Hannula anssi at mageia.org
Fri Jan 25 00:06:47 PST 2013


25.01.2013 03:10, Aaron Plattner kirjoitti:
> Closing an X display that had a VDPAU device created on it causes a crash.
> 
> Work around an identical libXext dlclose bug with the "Generic Event Extension"
> by dlopening libXext.so.6 and leaving it open.
> 
> Original bug discovered and fixed by Robert Morell <rmorell at nvidia.com> in
> commit 3b43955c7324e1d213a3134387767722f34e2356.
> 
> Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
> ---
> Sorry, Anssi, I forgot you had already written a testcase for this last year
> until after I'd already written it.

No problem, glad it got fixed :)

[...]
> +    status = pvdp_device_create_x11(dpy, 0, &device, &get_proc_address);
> +    if (status != VDP_STATUS_OK) {
> +        fprintf(stderr, "vdp_device_create_x11 failed: %d\n", status);
> +        return status == VDP_STATUS_NO_IMPLEMENTATION ? SKIP : FAIL;
> +    }
[...]

The crash was actually reproducable even when this returned
VDP_STATUS_NO_IMPLEMENTATION (and VDP_FUNC_ID_DEVICE_DESTROY then not
called), so not 100% needed to SKIP here.

Don't know if that matters, though...

-- 
Anssi Hannula


More information about the VDPAU mailing list