Bug 1310738

Summary: Memory leak in EnumerateActions call results handler (polkit_authority_enumerate_actions_finish) causes massive memory leak in KDE
Product: Red Hat Enterprise Linux 7 Reporter: Alan Matsuoka <alanm>
Component: polkitAssignee: Miloslav Trma─Ź <mitr>
Status: CLOSED ERRATA QA Contact: Stefan Kremen <skremen>
Severity: urgent Docs Contact: Maxim Svistunov <msvistun>
Priority: urgent    
Version: 7.2CC: jwright, ksrot, mitr, mkolaja, mostroski, msvistun, pdhamdhe, pkis
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: polkit-0.112-7.el7 Doc Type: Release Note
Doc Text:
Programs no longer run out of memory when repeatedly listing available *polkit* actions Previously, the *polkit* client library did not correctly free memory when listing available actions, which could cause programs to run out of memory and terminate. With this update, the library frees the memory correctly, and programs no longer crash in this scenario.
Story Points: ---
Clone Of:
: 1337047 (view as bug list) Environment:
Last Closed: 2016-11-04 07:55:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 1337047    

Description Alan Matsuoka 2016-02-22 15:13:55 UTC
Description of problem:
There is a memory leak in EnumerateActions call results handler that causes KDE 
to leak massive amounts of memory.

Version-Release number of selected component (if applicable):


How reproducible:
User reported slow machine. After checking we noticed KDE was consuming 60% of the available memory.

dhws018# ps auxwf | grep -e kde
wao      30489  0.0 59.0 16842380 9454440 ?    Sl   Oct09   2:40 kdeinit4: kded4 [kdeinit]

Steps to Reproduce:
1. start kde 
2. memory will start to grow over a couple of days

Actual results:

KDE will us up over 60% of available memory

Expected results:
no memory leak.

Additional info:

Comment 1 Mark Ostroski 2016-04-13 20:48:16 UTC
This is already fixed for fedora: 

Comment 14 errata-xmlrpc 2016-11-04 07:55:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.