Bug#816872: wmbattery: memory leak in wmbattery

Dave Johnson davijoh3 at cisco.com
Sun Mar 6 03:24:28 UTC 2016


Package: wmbattery
Version: 2.45-2
Severity: important

Dear Maintainer,

wmbattery appears to have a memory leak.  When invoked with "wmbattery -w 2" it is leaking approx 350KB/minute on my system.  Eventually it runs out of memory and is killed by kernel.


$ while sleep 300; do ps u $(pidof wmbattery); done
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
davijoh3 29894  0.2  0.0  18524  6792 ?        Sl   21:24   0:00 wmbattery -w 2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
davijoh3 29894  0.2  0.1  20068  7976 ?        Sl   21:24   0:01 wmbattery -w 2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
davijoh3 29894  0.2  0.1  21604  9404 ?        Sl   21:24   0:01 wmbattery -w 2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
davijoh3 29894  0.2  0.1  23160 10588 ?        Sl   21:24   0:02 wmbattery -w 2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
davijoh3 29894  0.2  0.1  24696 12208 ?        Sl   21:24   0:03 wmbattery -w 2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
davijoh3 29894  0.2  0.1  26164 14032 ?        Sl   21:24   0:03 wmbattery -w 2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
davijoh3 29894  0.2  0.1  27700 15464 ?        Sl   21:24   0:04 wmbattery -w 2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
davijoh3 29894  0.2  0.2  29644 17240 ?        Sl   21:24   0:05 wmbattery -w 2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
davijoh3 29894  0.2  0.2  31180 18964 ?        Sl   21:24   0:05 wmbattery -w 2



-- System Information:
Debian Release: 8.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages wmbattery depends on:
ii  libapm1          3.2.2-15
ii  libc6            2.19-18+deb8u3
ii  libglib2.0-0     2.42.1-1
ii  libupower-glib3  0.99.1-3.2
ii  libx11-6         2:1.6.2-3
ii  libxext6         2:1.3.3-1
ii  libxpm4          1:3.5.11-1+b1
ii  upower           0.99.1-3.2

wmbattery recommends no packages.

Versions of packages wmbattery suggests:
ii  wmaker  0.95.5-2+b2

-- no debconf information



More information about the Pkg-wmaker-devel mailing list