Bug#559408: xserver-xorg-core: X server memory leak
On Thu, Dec 3, 2009 at 23:48:26 -0500, Ross Vandegrift wrote:
> After a recent Xorg upgrade (1:7.3+20 -> 1:7.4+4), my Xorg server leaks
> memory like a sieve. RSS slowly grows until my box starts to OOM. If I
> restart Xorg prior to OOMing, the memory is freed and I can gracefully
> recover. I am running the nv driver.
>
> Some things I have noticed:
>
> If I exit X and only leave the display manager running, RSS does not
> substantially grow.
>
> I don't have to leave any particular client open to hit the leak.
>
> xrestop shows that my total usage is typically around 30MiB. I have
> been unable to capture data that shows pixmaps being leaked.
>
> The leak is fairly slow - it really does take a day or two to get to the
> 1G mark. In the past hour or so, it's grown from 70MiB to 90MiB.
>
> I am happy to collect any information requested to help troubleshoot
> this - it's very annoying.
>
You could try running X under valgrind (with debugging symbols
installed). It would be fairly slow, but could give some hints.
IIRC 1.7 fixed a memleak related to cursors, do you have some clients
that create cursors?
Cheers,
Julien
Reply to: