[VDPAU] Testcase for the libvdpau dlopen segfault bug

Anssi Hannula anssi at mageia.org
Tue Mar 13 09:45:28 PDT 2012


Hi!

As it might be of interest, here's a testcase I wrote last week for the
issue that calling vdp_device_create_x11() will cause a callback to be
set that will be run at XCloseDisplay() time, causing a crash if
libvdpau has been dlclose()d already when XCloseDisplay() gets called.

There's nothing new in it but it can save some testing time if someone
eventually takes a closer look.

The segfault happens both when vdp_device_create_x11() is successful and
when it fails (e.g. on any non-VDPAU-supporting system/driver).

This is Debian bug #592204, NVIDIA internal bug #770623.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592204

This has in the past affected at least mplayer and XBMC, though current
mplayer doesn't dlopen() libvdpau anymore and current XBMC has a
workaround for this (it never dlclose()s libvdpau). This affects
libvdpau 0.4+ (that version added the dri stuff).

-- 
Anssi Hannula
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdpau-debian-592204.c
Type: text/x-csrc
Size: 1910 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/vdpau/attachments/20120313/880548ec/attachment.c>


More information about the VDPAU mailing list