[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#471126: x11-utils: doesn't list some ghost windows that xrestop shows



retitle 471126 xlsclients doesn't list some ghost windows that xrestop shows
thank you



Tim Connors wrote:
> xrestop shows 100 or so of these ghost windows:
>
> 253 - <unknown> ( PID:  ?   ):
>         other bytes   : ~24
>         total bytes   : ~24
>
>
> that add up to give me my 255 window limit.
>
> A similar leak in qiv leads to the shell snippet presented in bug
> 351816, involving xlsclients.  xlsclients doesn't list any of these
> ghost windows though:
>
> xlsclients -l | grep Window | wc -l
> 78
>
> Is it possible, or indeed sensible, to list these windows in the same
> fashion as xrestop?  I presume there would be still no simple way
> involving xkill (or the like) of freeing those resources anyway, so it
> might be a bit academic, however it is misleading to the user who is
> trying to track down their resource leaks, not to have them listed in
> the output of xlsclients.
>   

The reason is probably that xlsclients only lists actual clients (using
XQueryTree()) while xrestop shows resources (with XResQueryClients()).
So your ghost windows may be part of the latter but not of the former.

By the way, did you actually found your ghostwindows to be missing in
xlsclient, or did you just compare the number of entries? Could it be
that some clients appear multiple times in xrestop and only once in
xlsclients?

Brice



Reply to: