Bug#471126: x11-utils: doesn't list some ghost windows that xrestop shows
On Sun, 16 Mar 2008, Brice Goglin wrote: > 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? There is one 'unknown' client according to xlsclients: Window 0x1a01: Machine: dirac Name: Icon Name: Command: '' Instance/Class: / Presumably corresponding to the one root window that is still "owned". In xrestop, one more of these ghost windows is created per invocation of the erroneous xli/xloadimage. In xlsclients, the entries are presumably not duplicated - they have unique res_base. -- TimC A debugged program is one for which you have not yet found the conditions that make it fail.-- Jerry Ogdin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Processed: Re: Bug#471126: x11-utils: doesn't list some ghost windows that xrestop shows
Processing commands for [EMAIL PROTECTED]: > retitle 471126 xlsclients doesn't list some ghost windows that xrestop shows Bug#471126: x11-utils: doesn't list some ghost windows that xrestop shows Changed Bug title to `xlsclients doesn't list some ghost windows that xrestop shows' from `x11-utils: doesn't list some ghost windows that xrestop shows'. > thank you Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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 - ( 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#471126: x11-utils: doesn't list some ghost windows that xrestop shows
Package: x11-utils Version: 7.3+1 Severity: normal Due to a resource leak in both xloadimage -onroot and xli -onroot (bugs 325689, 387030, and 471121), I have been left with the dreaded: Xlib: connection to ":0.0" refused by server Xlib: Maximum number of clients reached xterm Xt error: Can't open display: :0.0 xrestop shows 100 or so of these ghost windows: 253 - ( PID: ? ): res_base : ox20 res_mask : ox1f windows : 0 GCs : 1 fonts : 0 pixmaps : 0 pictures : 0 glyphsets : 0 colormaps : 0 passive grabs : 0 cursors : 0 unknowns : 0 pixmap bytes : 0 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. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24 (SMP w/2 CPU cores) Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages x11-utils depends on: ii cpp4:4.2.2-2 The GNU C preprocessor (cpp) ii libc6 2.7-9 GNU C Library: Shared libraries ii libfontconfig1 2.5.0-2 generic font configuration library ii libfontenc11:1.0.4-2 X11 font encoding library ii libfreetype6 2.3.5-1+b1FreeType 2 font engine, shared lib ii libgl1-mesa-glx [libgl 7.0.3~rc2-1 A free implementation of the OpenG ii libice62:1.0.4-1 X11 Inter-Client Exchange library ii libsm6 2:1.0.3-1+b1 X11 Session Management library ii libx11-6 2:1.0.3-7 X11 client-side library ii libxaw72:1.0.4-1 X11 Athena Widget library ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar ii libxft22.1.12-2 FreeType-based font drawing librar ii libxi6 2:1.1.3-1 X11 Input extension library ii libxinerama1 2:1.0.3-1 X11 Xinerama extension library ii libxmu62:1.0.4-1 X11 miscellaneous utility library ii libxmuu1 2:1.0.4-1 X11 miscellaneous micro-utility li ii libxrender11:0.9.4-1 X Rendering Extension client libra ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library ii libxtst6 2:1.0.3-1 X11 Testing -- Resource extension ii libxv1 1:1.0.3-1 X11 Video extension library ii libxxf86dga1 2:1.0.2-1 X11 Direct Graphics Access extensi ii libxxf86vm11:1.0.1-2 X11 XFree86 video mode extension l ii x11-common 1:7.3+10 X Window System (X.Org) infrastruc ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime x11-utils recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]