Bug#778642: xfce4-power-manager-plugins: Serious memory leak in libxfce4powermanager.so

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#778642: xfce4-power-manager-plugins: Serious memory leak in libxfce4powermanager.so

John Goerzen-3
Package: xfce4-power-manager-plugins
Version: 1.4.1-1
Severity: critical

This package has caused my system to hang on multiple occasions.  Right now, I am seeing this:

$ ps auxww | egrep 27036\|USER
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
jgoerzen  3262  0.0  0.0  12720  2016 pts/1    S+   13:27   0:00 grep -E 27036|USER
jgoerzen 27036  0.0 20.3 1865132 1640052 ?     Sl   Jan20   8:50 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libxfce4powermanager.so 3 23068717 power-manager-plugin Power Manager Plugin Display the battery levels of your devices and control the brightness of your display

Yep, using 1.6GB RAM.  And this laptop has been suspended most of the time since Jan. 20.  Also:

jgoerzen@athena:~$ free
             total       used       free     shared    buffers     cached
Mem:       8072628    7651112     421516     283484       3960     824748
-/+ buffers/cache:    6822404    1250224
Swap:            0          0          0
jgoerzen@athena:~$ kill 27036
jgoerzen@athena:~$ free
             total       used       free     shared    buffers     cached
Mem:       8072628    6026416    2046212     282212       3960     823860
-/+ buffers/cache:    5198596    2874032
Swap:            0          0          0

Thanks,

John

-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

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

Versions of packages xfce4-power-manager-plugins depends on:
ii  libatk1.0-0          2.14.0-1
ii  libc6                2.19-13
ii  libcairo2            1.14.0-2.1
ii  libdbus-1-3          1.8.12-3
ii  libdbus-glib-1-2     0.102-1
ii  libfontconfig1       2.11.0-6.3
ii  libfreetype6         2.5.2-2
ii  libgdk-pixbuf2.0-0   2.31.1-2+b1
ii  libglib2.0-0         2.42.1-1
ii  libgtk2.0-0          2.24.25-1
ii  libpango-1.0-0       1.36.8-3
ii  libpangocairo-1.0-0  1.36.8-3
ii  libpangoft2-1.0-0    1.36.8-3
ii  libupower-glib3      0.99.1-3.1
ii  libx11-6             2:1.6.2-3
ii  libxfce4ui-1-0       4.10.0-6
ii  libxfce4util6        4.10.1-2
ii  libxfconf-0-2        4.10.0-3
ii  libxrandr2           2:1.4.2-1+b1
ii  xfce4-panel          4.10.1-1
ii  xfce4-power-manager  1.4.1-1

xfce4-power-manager-plugins recommends no packages.

xfce4-power-manager-plugins suggests no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#778642: [Pkg-xfce-devel] Bug#778642: xfce4-power-manager-plugins: Serious memory leak in libxfce4powermanager.so

Yves-Alexis Perez-2
control: severity -1 import
control: tag -1 unreproducible moreinfo

On mar., 2015-02-17 at 13:28 -0600, John Goerzen wrote:

> Package: xfce4-power-manager-plugins
> Version: 1.4.1-1
> Severity: critical
>
> This package has caused my system to hang on multiple occasions.  Right now, I am seeing this:
>
> $ ps auxww | egrep 27036\|USER
> USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> jgoerzen  3262  0.0  0.0  12720  2016 pts/1    S+   13:27   0:00 grep -E 27036|USER
> jgoerzen 27036  0.0 20.3 1865132 1640052 ?     Sl   Jan20   8:50 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libxfce4powermanager.so 3 23068717 power-manager-plugin Power Manager Plugin Display the battery levels of your devices and control the brightness of your display
>
> Yep, using 1.6GB RAM.  And this laptop has been suspended most of the time since Jan. 20.  Also:
>
> jgoerzen@athena:~$ free
>              total       used       free     shared    buffers     cached
> Mem:       8072628    7651112     421516     283484       3960     824748
> -/+ buffers/cache:    6822404    1250224
> Swap:            0          0          0
> jgoerzen@athena:~$ kill 27036
> jgoerzen@athena:~$ free
>              total       used       free     shared    buffers     cached
> Mem:       8072628    6026416    2046212     282212       3960     823860
> -/+ buffers/cache:    5198596    2874032
> Swap:            0          0          0
>
There's just nothing useful for us to help you here. You could try to
run it through valgrind or something like that.

Regards,
--
Yves-Alexis

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#778642: [Pkg-xfce-devel] Bug#778642: xfce4-power-manager-plugins: Serious memory leak in libxfce4powermanager.so

John Goerzen-3
I would be happy to do that, but I have no idea how to do so for something launched by the panel. Help?
--
Sent from my phone. Please excuse my brevity.

On February 18, 2015 10:05:48 AM CST, Yves-Alexis Perez <[hidden email]> wrote:
control: severity -1 import
control: tag -1 unreproducible moreinfo

On mar., 2015-02-17 at 13:28 -0600, John Goerzen wrote:
Package: xfce4-power-manager-plugins
Version: 1.4.1-1
Severity: critical

This package has caused my system to hang on multiple occasions. Right now, I am seeing this:

$ ps auxww | egrep 27036\|USER
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
jgoerzen 3262 0.0 0.0 12720 2016 pts/1 S+ 13:27 0:00 grep -E 27036|USER
jgoerzen 27036 0.0 20.3 1865132 1640052 ? Sl Jan20 8:50 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libxfce4powermanager.so 3 23068717 power-manager-plugin Power Manager Plugin Display the battery levels of your devices and control the brightness of your display

Yep, using 1.6GB RAM. And this laptop has been suspended most of the time since Jan. 20. Also:

jgoerzen@athena:~$ free
total used free shared buffers cached
Mem: 8072628 7651112 421516 283484 3960 824748
-/+ buffers/cache: 6822404 1250224
Swap: 0 0 0
jgoerzen@athena:~$ kill 27036
jgoerzen@athena:~$ free
total used free shared buffers cached
Mem: 8072628 6026416 2046212 282212 3960 823860
-/+ buffers/cache: 5198596 2874032
Swap: 0 0 0


There's just nothing useful for us to help you here. You could try to
run it through valgrind or something like that.

Regards,
--
Yves-Alexis
Reply | Threaded
Open this post in threaded view
|

Bug#778642: [Pkg-xfce-devel] Bug#778642: xfce4-power-manager-plugins: Serious memory leak in libxfce4powermanager.so

Yves-Alexis Perez-2
On jeu., 2015-02-26 at 15:32 -0600, John Goerzen wrote:
> I would be happy to do that, but I have no idea how to do so for
> something launched by the panel. Help?

http://docs.xfce.org/xfce/xfce4-panel/debugging has some pointers.

Regards,
--
Yves-Alexis

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#778642: xfce4-power-manager-plugins: Serious memory leak in libxfce4powermanager.so

Steven Chamberlain-2
In reply to this post by John Goerzen-3
Hi,

I can reproduce the bug in Debian jessie by running the
power-manager-plugin applet on a laptop only using wall power and
having a fully-charged battery.  In the past 30 days the system's
OOM-killer has twice killed the applet, despite this machine having
~6 GiB RAM otherwise free.

I've tried also with Phil Davidov's 0002-memory-leak-fix.patch
(thanks!), which may have helped fixed some memory leaks, but apparently
not all of them.

The upstream bug report https://bugzilla.xfce.org/show_bug.cgi?id=12367
points to a glib2 upstream commit/backport:
http://pkgs.fedoraproject.org/cgit/rpms/glib2.git/commit/?h=f23&id=58034b4a48df078e37b55a13bbb855f7615c18b5

The version of glib2.0 in Debian stretch has that patch already applied,
but jessie does not.  Applying that patch against glib2.0 in jessie, I
actually *still* see the resident size of my power-manager-plugin
applet increasing over time.

I'm unfortunately unable to run valgrind on this machine.

Regards,
--
Steven Chamberlain
[hidden email]

signature.asc (662 bytes) Download Attachment