Kdeinit4 is leaking memory on every ssh login due to known bug on policykit-1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PolicyKit |
Fix Released
|
High
|
|||
policykit-1 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Utopic |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A memory leak in policykit causes memory exhaustion over time in kdeinit4.
[Test Case]
1- check memory usage of kdeinit4 under htop (RES column)
2- ssh in
3- check to make sure it stays constant
[Regression Potential]
If the patch is incorrect, policykit could possibly crash.
Every time ssh login is made on ubuntu 14.04, kdeinit4 leaks 2-3 Mb (when kde is installed).
According to previous bug report in: https:/
this is a bug in policykit-1 package, and it has been already fixed on upstream.
Update of policykit-1 should fix this problem on kubuntu 14.04 and Ubuntu 14.04 + Kde.
This bug is severe in some specific scenarios where ssh is often used.
In my case, I have a lot of scripts running processes every hour between ubuntu and kubuntu machines using passwordless ssh login. In few days kubuntu machines don't have free memory, due to the referred leak.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: policykit-1 0.105-4ubuntu2
ProcVersionSign
Uname: Linux 3.13.0-43-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
CurrentDesktop: KDE
Date: Tue Feb 3 15:33:04 2015
InstallationDate: Installed on 2013-09-26 (494 days ago)
InstallationMedia: Kubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902.2)
SourcePackage: policykit-1
UpgradeStatus: Upgraded to trusty on 2014-04-14 (294 days ago)
Changed in policykit-1: | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
Changed in policykit-1 (Ubuntu Trusty): | |
status: | New → Confirmed |
Changed in policykit-1 (Ubuntu Utopic): | |
status: | New → Confirmed |
tags: |
added: verification-done-trusty verification-needed removed: verification-done |
tags: |
added: verification-needed-utopic removed: verification-needed |
Created attachment 112087
Fix for memory leak in EnumerateActions call results handler.
I've found, that policykit-1-0.105 in my Debian Wheezy doesn't release reference counters of GVariant data for org.freedesktop .PolicyKit1. Authority. EnumerateAction s DBUS call resulting data.
See patch in attachment.
g_variant_ref_sink (child) call was odd in case of iterating array child items.