Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541810 - sys-auth/polkit patch to stop memory leak seen in kde/powerdevil
Summary: sys-auth/polkit patch to stop memory leak seen in kde/powerdevil
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-01 15:07 UTC by Jeremy Sermersheim
Modified: 2015-07-04 13:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
polkit memory leak patch (gvariant_mem_leak.patch,423 bytes, patch)
2015-03-01 23:12 UTC, Jeremy Sermersheim
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Sermersheim 2015-03-01 15:07:14 UTC
Running kde I'm seeing a pretty massive memory leak in kde related to power management.  Disabling power management in kde stops the leak and the following bug and subsequent polkit patch corroborates my issue:

https://bugs.kde.org/show_bug.cgi?id=271934#c121
http://cgit.freedesktop.org/polkit/commit/?id=f4d71e0de885010494b8b0b8d62ca910011d7544

Can we get polkit bumped with that one line patch included?


Reproducible: Always
Comment 1 Jeremy Sermersheim 2015-03-01 23:12:57 UTC
Created attachment 397830 [details, diff]
polkit memory leak patch

After placing the above patch in /etc/portage/patches/sys-auth/polkit-0.112-r2, enabling the epatch_user functionality globally using /etc/portage/bashrc, emerge -1 sys-auth/polkit, and finally rebooting, the memory leak is gone.  I've also noticed other distros have applied this same patch.

The 'kdeinit4: kded4 [kdeinit]' process hovers around 17M vs multiple G.
Comment 2 Mike Gilbert gentoo-dev 2015-03-04 23:34:05 UTC
Do not copy arch teams on bugs.
Comment 3 Pacho Ramos gentoo-dev 2015-07-04 13:25:55 UTC
0.113 should fix this