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 - <unknown> ( PID: ? ):
res_base : ox200000
res_mask : ox1fffff
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 cpp 4: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 libfontenc1 1:1.0.4-2 X11 font encoding library
ii libfreetype6 2.3.5-1+b1 FreeType 2 font engine, shared lib
ii libgl1-mesa-glx [libgl 7.0.3~rc2-1 A free implementation of the OpenG
ii libice6 2: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 libxaw7 2:1.0.4-1 X11 Athena Widget library
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxft2 2.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 libxmu6 2:1.0.4-1 X11 miscellaneous utility library
ii libxmuu1 2:1.0.4-1 X11 miscellaneous micro-utility li
ii libxrender1 1: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 libxxf86vm1 1: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
Reply to: