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

Bug#447526: xserver leaks memory



Not long after I reported this problem, the system OOM'd and iceweasel
got killed (along with a gitk instance, but I only mention it for
completeness, I don't believe he was much guilty).

Now the formerly-growing mem areas are completely gone from X:

|$ diff -u X-19813.map /proc/19813/maps
|--- X-19813.map 2007-10-21 23:11:40.000000000 +0200
|+++ /proc/19813/maps    2007-10-22 20:52:55.118289209 +0200
|@@ -1,10 +1,6 @@
| 08048000-081e2000 r-xp 00000000 fe:08 147507     /usr/bin/Xorg
| 081e2000-081f1000 rw-p 00199000 fe:08 147507     /usr/bin/Xorg
| 081f1000-0d06f000 rw-p 081f1000 00:00 0          [heap]
|-4ab56000-5e762000 rw-p ae5fa000 00:00 0
|-72327000-85f33000 rw-p b06c5000 00:00 0
|-88cd8000-9c8e4000 rw-p b1f5d000 00:00 0
|-b19bb000-b1ca9000 rw-p b19bb000 00:00 0
| b22e1000-b2304000 r--p 00000000 fe:08 854358     /usr/share/fonts/type1/gsfonts/n021003l.pfb
| b2304000-b2325000 r--p 00000000 fe:08 854361     /usr/share/fonts/type1/gsfonts/n021024l.pfb
| b2325000-b2db2000 rw-p b2325000 00:00 0


I'm no xrestop expert, and the full listing did not seem suspect to me
at first.  In case someone can see anything suspect here, I reproduce
it, from tty history.

Appart from showing an obvious leak in iceweasel, I wonder whether
xrestop should not have displayed any useful info here.  I'm not even
sure "xresrop -b" would have disclosed more information.

Opinions ?

|xrestop - Display: localhost:0
|          Monitoring 23 clients. XErrors: 0
|          Pixmaps:   43237K total, Other:     314K total, All:   43552K total
|
|res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier    
|1a00000  1077   61    1 1055  820    27348K     46K  27395K 11983 libraw1394 - Iceweasel
|1200000     7   22    0    4   18     7328K      1K   7329K 19944 Desktop
|0c00000   503   28    1  308  963     7090K     36K   7126K 19938 xfwm4
|0e00000    82   25    0   11   71      512K      4K    516K 19940 Xfce Panel
|0a00000     4    1    0    2   87      384K      2K    386K 19934 xfce-mcs-manager
|2800000    73   24    7   46   10      160K      9K    169K   ?   Xpdf: /home/dwitch/doc/drivers_linux.pdf
|1600000   128   47    1   26   66      140K      6K    147K 19970 XChat: yann @ FreeNode / #tagua (+tnc)
|0800000     2    2    1   11   21      128K      1K    129K 19931 xfce4-session
|1400000     8   25    0    5   18      128K      1K    129K 19949 xfce4-menu-plugin
|0600000     1    2    2    0 2636        0B     63K     63K   ?   screensaver
|2600000   134   46   39    0   99        0B     45K     45K   ?   <unknown>
|2400000   283  151   16   64   23        9K     26K     35K   ?   emacs: *scratch*
|3200000    13   64   14   11   10        9K     16K     25K   ?   emacs: *scratch*
|1c00000    84   59    8    3    5        0B     11K     11K   ?   gitk: stgit
|2c00000    84   55    7    7    5        0B     10K     10K   ?   gitk: wine
|2a00000    86   52    7    3    5        0B     10K     10K   ?   gitk: linux-git-2.6
|1e00000    86   52    7    3    5        0B     10K     10K   ?   gitk: tagua
|1800000     3   61    7    3   35       15B      9K      9K 19979 dwitch@gandelf: /home/dwitch
|0200000     0    1    1    0    0        0B      1K      1K   ?   <unknown>
|1000000     2    1    0    0    5        0B    192B    192B 19942 Thunar
|2200000     1    1    0    0    0        0B     48B     48B   ?   xrestop
|2000000     1    0    0    0    0        0B     24B     24B   ?   <unknown>
|0400000     0    1    0    0    0        0B     24B     24B   ?   <unknown>




Reply to: