[Bug 33193] New: XvPutImage using multiple different-sized images leaks memory

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 16 12:30:01 PST 2011


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

           Summary: XvPutImage using multiple different-sized images leaks
                    memory
           Product: xorg
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Driver/Radeon
        AssignedTo: xorg-driver-ati at lists.x.org
        ReportedBy: cus at fazekas.hu
         QAContact: xorg-team at lists.x.org


Created an attachment (id=42110)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=42110)
Testxv.c to reproduce the memory leak

It seems that if I use multiple images with different sizes and display them
using XvShmPutImage from one application, then a severe memory leak occurs, and
my memory is eaten up.

/sys/devices/virtual/drm/ttm/memory_accounting/kernel/used_memory is getting
bigger and bigger, and the increasing only stops if I exit the application. On
the other hand, the occupied memory is not freed when the application exists,
only the increasing stops.

It is important to use images with different sizes, and to use the XvPutImage
from one application to hit the bug.

See the attached C program to reproduce the bug, it is a slightly modified
version of testxv.c (I found it in the X video extension article of Wikipedia).
You can compile it with "gcc -o testxv testxv.c -L/usr/X11R6/lib -lX11 -lXext
-lXv"

I tested it with an openSUSE 11.3 x86_64 LiveCD and with my current system
(Xorg 7.6, Mesa 7.10, libdrm 2.4.23, xorg radeon driver from git). My graphics
card is a Radeon HD4850.

If you need any more information please let me know. Thanks.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the xorg-driver-ati mailing list