Bug 1546302

Summary: possible memory leak in Gnome
Product: Red Hat Enterprise Linux 7 Reporter: Joe Wright <jwright>
Component: gnome-shellAssignee: Florian Müllner <fmuellner>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 7.4CC: afox, alanm, bgollahe, dbasant, fmuellner, jkoten, jwright, lsatenstein, mark.crossland, mboisver, mclasen, pgozart, rstrode, setthemfree, sfroemer, tpelka, vanhoof, vbenes, yferszt, yuokada, yzheng, zagar
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gjs-1.52.5-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1666809 1667994 1669048 (view as bug list) Environment:
Last Closed: 2019-08-06 12:37:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1594286, 1649362, 1656436, 1666809, 1667994, 1669048, 1708741, 1713081, 1717000, 1719819, 1881217, 1881995, 1882009, 1882574, 1882821, 1887741, 1888675, 1888676, 1888678, 1888682    
Attachments:
Description Flags
Reproducer script none

Description Joe Wright 2018-02-16 20:02:36 UTC
Created attachment 1397168 [details]
ps aux output

Description of problem:
Possible memory leak in Gnome, seems to build up over a few days.

Version-Release number of selected component (if applicable):
- gnome-shell-3.22.3-17.el7.x86_64

How reproducible:
- over a few days, customer environment

Steps to Reproduce:
1. Let Gnome run and be used for a few days
2. system eventually boggs down
3.

Actual results:
- system eventually runs at a crawl

Expected results:


Additional info:

Gnome-shell seems to be the biggest offender here

Gnome-shell:
(ps aux)
724  2.9 77.3 10705580 6195892 ?    Sl   Feb05 457:26 /usr/bin/gnome-shell

Comment 9 Leslie Satenstein 2018-03-27 03:26:52 UTC
Here is a way to demonstrate a memory leak.

Begin your gome session.
Invoke "system" (a gnome utility) that shows memory use by application name.
focus on gnome-shell
On a fresh logon, the shell will show around 200megs consumed
invoke aisleriot  a few times and exit
Each time aisleriot is invoked, it consumes around 5 megs
On exit, the 5 megs do not appear returned to the shell.

More simpletest. 
invoke aisleriot and then firefox and then aisleriot
you will find that the gnome-shell memory use is monotonic increasing, even after quitting firefox and aisleriot

Other gnome programs cause a similar effect.

Programs that do not use gnome-shell (Dropbox), on exit, return all memory that was assigned.


Footnote.
Is the monotonic memory increase shown by gnome-shell due to the shell or to Aisleriot / firefox, both not releasing memory back to the system?

Comment 16 Divya 2018-10-18 06:27:34 UTC
Created attachment 1495165 [details]
Reproducer script

Comment 44 Ray Strode [halfline] 2019-01-29 16:13:45 UTC
*** Bug 1079940 has been marked as a duplicate of this bug. ***

Comment 56 errata-xmlrpc 2019-08-06 12:37:16 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.

https://access.redhat.com/errata/RHBA-2019:2044